aboutsummaryrefslogtreecommitdiff
path: root/ksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-06 19:42:09 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-06 19:42:09 +1300
commit3ee57042e41a290edaf171cfe53332a0b2034f01 (patch)
tree0b01e7fcd923699804ff0db8fce23d2006ef5cc0 /ksh
parentde6ec20aec4af67f8de5ab94b76f43722c8e655f (diff)
downloaddotfiles-3ee57042e41a290edaf171cfe53332a0b2034f01.tar.gz
Found workable ^L bindings in all three kshes
Diffstat (limited to 'ksh')
-rw-r--r--ksh/kshrc.d/bind.ksh14
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