diff options
-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 |