summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-28 11:49:16 +0100
committerdavidovski <david@davidovski.xyz>2022-04-28 11:49:16 +0100
commitfd1e31b3507ea0555c6f620188fa10f844d712b3 (patch)
treec8bf54bd1c1a418d39d3f5370bc5d7f3662faebf /src
parentb1d9f7232adc458dfa5bcf01fa1f4c95ac76bfb6 (diff)
removed extra tty redirectsv1.3
Diffstat (limited to 'src')
-rw-r--r--src/xit.sh8
1 files changed, 3 insertions, 5 deletions
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"