3 Jul 2009 16:14
Emulate Ctrl-Delete in mksh
Hi. I really like most of the default key bindings in mksh. I don't need to set them manually like in other ports of the Korn shell. Even the Delete key works fine: it deletes one character to the right of the insertion point. So does Ctrl-d. The difference is that Ctrl-d will close the session (exit) if no characters are left to be deleted. The Delete key won't do that. But I like the Delete key, I think that Ctrl-d is annoying to type. Is there any way I can add that Ctrl-d feature to the Ctrl-Delete key combination? I can map Delete or Ctrl-letter, but I cannot map Ctrl-Delete. I can't find the right string that says "Ctrl-Delete". Everything I try makes mksh complain that the string "is too long". Any ideas? TIA -- -- Luc
> $ bind '^X3~=eot-or-delete'
> This maps the ^D function to the Del key.
Yeah, I had the same result with bind -m '^[[3~'=^d. But that's not
what I wanted, I wanted Ctrl-Delete.
RSS Feed