Any Bash features you'd like to see?
Chris F.A. Johnson
cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org
Fri May 13 23:21:13 UTC 2005
On Fri, 13 May 2005, psema4 wrote:
>>> I'd also like to see proper control-left/right to hop words. I need
>>> to do more reading to get this sort of thing working properly
>>> everywhere. Half of the apps I use don't recognize proper key
>>> combinations. =/
>>
>> "\eOd": backward-word
>> "\eOc": forward-word
>>
>> Or, (depending on your terminal):
>>
>> "\e[1;5D": backward-word
>> "\e[1;5C": forward-word
>
>
> Tried both methods, but neither seemed to work - will have to play
> with it some more.
To find the key combination, press Ctrl-V and then the keystroke at
the command line. Mine shows ^[Od for Ctrl-Left, which is \e0d.
There may be a problem using it with vi mode; but <ducking> vi mode
is itself a problem.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
==================================================================
Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
<http://www.torfree.net/~chris/books/ssr.html>
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list