mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Squashed 'cde/programs/dtksh/ksh93/' content from commit 66e1d4464
git-subtree-dir: cde/programs/dtksh/ksh93
git-subtree-split: 66e1d44642
This commit is contained in:
commit
c9b8687604
1269 changed files with 369117 additions and 0 deletions
12
docs/ksh/functions/emacs_keybind.txt
Normal file
12
docs/ksh/functions/emacs_keybind.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
typeset -A Keytable
|
||||
trap 'eval "${Keytable[${.sh.edchar}]}"' KEYBD
|
||||
function emacs_keybind
|
||||
{
|
||||
keybind $'\E[A' $'\020' # Up key
|
||||
keybind $'\E[B' $'\016' # Down key
|
||||
keybind $'\E[C' $'\06' # Right key
|
||||
keybind $'\E[D' $'\02' # Left key
|
||||
keybind $'\E[H' $'\01' # Home key
|
||||
keybind $'\E[Y' $'\05' # End key
|
||||
keybind $'\t' $'\E\E' # Tab for command-line completion
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue