From fd1e31b3507ea0555c6f620188fa10f844d712b3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 28 Apr 2022 11:49:16 +0100 Subject: removed extra tty redirects --- src/xit.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/xit.sh') diff --git a/src/xit.sh b/src/xit.sh index a0867b2..da60017 100644 --- a/src/xit.sh +++ b/src/xit.sh @@ -182,10 +182,8 @@ t_drw_txt_clr () { t_msg () { h_txt_w_h "$@\n" h_cntr $w $h - { - t_drw_box $((x-1)) $((y-1)) $((w+2)) $((h+2)) - t_drw_txt_clr "${COLOR_FG}" $x $y "$@" - } > $(tty) + t_drw_box $((x-1)) $((y-1)) $((w+2)) $((h+2)) + t_drw_txt_clr "${COLOR_FG}" $x $y "$@" } h_drw_btns () { @@ -224,8 +222,8 @@ h_t_result() { } t_dialog() { + # TODO these are messy af local msg="$1"; shift - local btns_len="$#" w_btns=$(echo "$*" | wc -c) h_txt_w_h "$msg\n $*\n" -- cgit v1.2.1