PDA

View Full Version : key representations for built-in commands


bakaDeshi
04-04-2002, 05:25 PM
Can someone explain the codes for these keystrokes? When you type bindkey, you get a listing of the built-in commands.

"^N" -> down-history
"^O" -> tty-flush-output
"^P" -> up-history
...

I know the '^' refers to control so control-N would give me down-history. Then there's these:

"\204" -> list-choices
"\210" -> backward-delete-word
...

What key combinations do these refer to? I apologize if this is a simple question. If there is a simple source with these answers, please enlighten me. Also, for those in the know, perhaps posting the additional key representations will help others. (opt, command, etc.)

TIA.

chris

mervTormel
04-04-2002, 06:21 PM
these key bindings are only interesting in the shell.

^N ^P merely cycle thru the shell command line history, but that functionality is also bound to the up and down-arrow keys.

^O toggles output on and off; e.g., during a long listing that you don't want to see, ^O will toggle output off, the command continues to run, but output is sent off into the ether. toggle ^O will resume output again. writing terminal
i/o is prolly the slowest thing a command does, so turning output off will let the command fly at top speed, at the cost of not seeing that at top speed, it's just writing errors ;] be aware.

\nnn is another way to designate a key sequence. nnn is an octal number representing the ascii equivalent. these probably remain for backwards compatability with old keyboards that had to 'compose' key sequences.

generally, these key sequences are only interesting in manipulating the shell command line in an editing style of vi or emacs. key sequences are generated with a control or a meta character. i believe meta is bound to the option key.

simple source? tcsh's bindkey lists what keys do what functions. prolly vi or emacs docs will enlighten editing wonkery like what the 'yank' function does.

option key sequences do not translate to >127 character set in shell since option is bound to the meta key.

command key sequences are bound to get you application menu functionality, right?

HTH

--
Hold down the command key and type "quick" to speed up Internet Explorer.