diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-06 19:42:09 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-06 19:42:09 +1300 |
commit | 3ee57042e41a290edaf171cfe53332a0b2034f01 (patch) | |
tree | 0b01e7fcd923699804ff0db8fce23d2006ef5cc0 /ksh/kshrc.d | |
parent | Clean binding of ^L in ksh93 to clear screen (diff) | |
download | dotfiles-3ee57042e41a290edaf171cfe53332a0b2034f01.tar.gz dotfiles-3ee57042e41a290edaf171cfe53332a0b2034f01.zip |
Found workable ^L bindings in all three kshes
Diffstat (limited to 'ksh/kshrc.d')
-rw-r--r-- | ksh/kshrc.d/bind.ksh | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ksh/kshrc.d/bind.ksh b/ksh/kshrc.d/bind.ksh index e32b9565..af024fb9 100644 --- a/ksh/kshrc.d/bind.ksh +++ b/ksh/kshrc.d/bind.ksh @@ -1,12 +1,6 @@ # Try to bind ^L to clear the screen case $KSH_VERSION in - # Works great - *'MIRBSD KSH'*) - bind ^L=clear-screen - ;; - - # Works great *'93'*) bind() { case ${.sh.edchar} in @@ -16,8 +10,12 @@ case $KSH_VERSION in trap bind KEYBD ;; - # Works pretty well, but only on an empty line + *'MIRBSD KSH'*) + bind ^L=clear-screen + ;; + *'PD KSH'*) - bind -m '^L'=clear'^J' + bind -m '^L'='^U'clear'^J^Y' ;; + esac |