From 3ff00bc74d5a99bac8037a1954d6c2104e7f777b Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 21 Jan 2023 12:59:59 +0000 Subject: Fix issues wth xitui not showing text --- src/lib/xilib.sh | 12 ++++++++++++ src/lib/xitui.sh | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1