Cmder: Cannot use Ctrl+Backspace to delete a word in Bash on Ubuntu on Windows

Created on 8 Apr 2017  路  16Comments  路  Source: cmderdev/cmder

I've recently added Bash on Ubuntu on Windows as a task for Cmder:

%windir%\system32\bash.exe ~ -cur_console:p

Everything works fine except for the fact, that pressing Ctrl+Backspace results in a small lag in the console and nothing being deleted, whereas in other consoles (regular cmdPowershell or bash, all ran under Cmder) it works fine and deletes the last word behind the cursor.

Is there an option to enable Ctrl+Backspace for Bash on Ubuntu on Windows? I'd be satisfied with this command just removing a single character instead of lagging the window.

Most helpful comment

FYI a terrible hack that works is remap Ctrl+Backspace to Alt+Backspace. Still this should be fixed, but in the meantime if your fingers really hate that Alt+Backspace thing (which doesn't exist on the standard cmd or any shell) you can go this way.

image

All 16 comments

I've noticed if you turn this setting off

image

It seems to fix the problem, for bash, at least.

@JordanRobinson Thanks for responding!

Turning it off does work, but not in the way I would expect it to. It seems to delete a bunch of words at a time, sometimes even restores letters and appears to be unpredictable overall, at least to my mind. Not only that but then Ctrl + Backspace doesn't work in regular Cmder shell.

Ah you're right, it looks like I was a little too hasty to celebrate. After checking I'm also getting the issue in base ConEmu (170402).

This worked for me before updating to Win10 1703 (Creators Update) and ConEmu 161206, I'm not sure which one broke it, but yeah :(

You'd probably be better off making an issue on https://github.com/Maximus5/ConEmu/

I'm seeing this issue in regular ConEmu as well, I don't think this is cmder specific.

@masaeedu Sure, it is probable, yet I didn't know where to post this issue. Thanks for clarifying.

Does this still happen with the latest preview build of ConEmu?

i found that alt+backspace starts working instead

FYI a terrible hack that works is remap Ctrl+Backspace to Alt+Backspace. Still this should be fixed, but in the meantime if your fingers really hate that Alt+Backspace thing (which doesn't exist on the standard cmd or any shell) you can go this way.

image

@Brunni132 nice fix!

EDIT 2019-08-02
This solution no longer appears to work (as icharge points out from their reply) marklauyq's "terrible hack" works great! I did have to disable the Read line enhancements Ctrl+Backspace option that didn't work anyway to avoid the annoying popups that there was a duplicate key mapping.


I have found that leaving the cmder defaults - I will open to cmd.exe {cmd::Cmder}. After initialization, I am unable to use CTRL+Backspace.
It is annoying, but using ALT+Backspace does the trick.
I stumbled on a work-around tonight - if you type
cmd
and then immediately
exit
CTRL+Backspace functionality works.

I have found that leaving the cmder defaults - I will open to cmd.exe {cmd::Cmder}. After initialization, I am unable to use CTRL+Backspace.
It is annoying, but using ALT+Backspace does the trick.
I stumbled on a work-around tonight - if you type
cmd
and then immediately
exit
CTRL+Backspace functionality works.

Not worked for me :(

FYI a terrible hack that works is remap Ctrl+Backspace to Alt+Backspace. Still this should be fixed, but in the meantime if your fingers really hate that Alt+Backspace thing (which doesn't exist on the standard cmd or any shell) you can go this way.

image

Works like a charm

I just installed on new machine and it took me a bit to figure out that in the "Keys & Macro" section, you need to scroll down to the Macro types and select an un-set macro and mod that. There's doesn't appear to be an add macro button or anything like that.

Why was this closed? It's still broken...

@marklauyq
Thank you! The only solution that worked for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jordanrobinson picture jordanrobinson  路  3Comments

bmeverett picture bmeverett  路  3Comments

jenisys picture jenisys  路  3Comments

luisrudge picture luisrudge  路  3Comments

brunowego picture brunowego  路  3Comments