|
|
coherent
bind Command bind
Bind key sequence to editing command
bbiinndd [-mm] [_s_t_r_i_n_g [= _c_o_m_m_a_n_d]]
The command bbiinndd is used by the Korn shell kksshh to bind one of its
command-line editing commands to a given key sequence. The
editing commands are used by kksshh to perform its MicroEMACS-style
command-line editing.
When bbiinndd is invoked without arguments, it lists on the standard
output all current bindings.
When invoked with the syntax _s_t_r_i_n_g=_c_o_m_m_a_n_d, it binds the key-
sequence _s_t_r_i_n_g to the command. For example, the command
bind ^[X=end-of-line
binds the editing command eenndd-ooff-lliinnee (which moves the cursor to
the end of the command line) with the key sequence <eesscc>XX. Note
that <eesscc> is written ^[ -- that is, a literal carat `^' followed
by `['.
When invoked with the syntax -mm _s_t_r_i_n_g=_c_o_m_m_a_n_d_s , _s_t_r_i_n_g is bound
to _c_o_m_m_a_n_d_s, which contains one or more editing commands. This
form of the bbiinndd command lets you build keyboard macros that
combine several editing commands into one keystroke sequence.
For the list of editing commands, their default bindings, and
other details of using MicroEMACS-style command-line editing, see
the Lexicon entry for kksshh.
***** See Also *****
ccoommmmaannddss, kksshh
COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.