diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/xilib.sh | 12 | ||||
-rw-r--r-- | src/lib/xitui.sh | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/xilib.sh b/src/lib/xilib.sh index 57dd10c..5c662a9 100644 --- a/src/lib/xilib.sh +++ b/src/lib/xilib.sh @@ -32,3 +32,15 @@ reverse_lines () { } +#!/bin/sh + +basename () { + name=$1 + suf=$2 + pre=${name%/*} + name=${name#$pre/} + + echo ${name#$suf} +} + +basename diff --git a/src/lib/xitui.sh b/src/lib/xitui.sh index bd23bdc..f47adb3 100644 --- a/src/lib/xitui.sh +++ b/src/lib/xitui.sh @@ -359,7 +359,8 @@ t_input () { t_msg "$@ >" > $(tty) - t_yes_cu + stty echo + t_yes_cur read var t_set_tty t_no_cur |