diff options
author | davidovski <david@davidovski.xyz> | 2023-01-21 12:59:59 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-01-21 12:59:59 +0000 |
commit | 3ff00bc74d5a99bac8037a1954d6c2104e7f777b (patch) | |
tree | e3016eb28a52c85cdcbfd67721f3a97a2bb1d1b5 | |
parent | 928db4decc228b4469211e838d89985cb3bdf0bd (diff) |
Fix issues wth xitui not showing text
-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 |