diff options
Diffstat (limited to 'ksh')
-rw-r--r-- | ksh/kshrc.d/bind.ksh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ksh/kshrc.d/bind.ksh b/ksh/kshrc.d/bind.ksh new file mode 100644 index 00000000..af024fb9 --- /dev/null +++ b/ksh/kshrc.d/bind.ksh @@ -0,0 +1,21 @@ +# Try to bind ^L to clear the screen +case $KSH_VERSION in + + *'93'*) + bind() { + case ${.sh.edchar} in + $'\f') .sh.edchar=$'\e\f' ;; + esac + } + trap bind KEYBD + ;; + + *'MIRBSD KSH'*) + bind ^L=clear-screen + ;; + + *'PD KSH'*) + bind -m '^L'='^U'clear'^J^Y' + ;; + +esac |