summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-29 16:51:08 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-29 16:51:08 (EDT)
commit22a728867d6ad1f8f61b91ebc323dfeebaea5e6a (patch)
tree03ce0911ffee9f1df6b2ac8fd57d1446405467c4
parentae3179090416c12c8891a5dc283b1426fbda045b (diff)
downloadfirman.sh-22a728867d6ad1f8f61b91ebc323dfeebaea5e6a.zip
firman.sh-22a728867d6ad1f8f61b91ebc323dfeebaea5e6a.tar.gz
firman.sh-22a728867d6ad1f8f61b91ebc323dfeebaea5e6a.tar.bz2
_tui_box(): Reset SGR before clearing screen
Otherwise, some video mode corruption happens and the screen gets cleared white for the next box (on VTE-based terminals) or all subsequent boxes (on XTerm and the Linux console).
-rw-r--r--src/ui/tui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index 9ed68f9..2c572bf 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -44,6 +44,7 @@ _tui_box()
local line=''
# Clear the screen and set the cursor position to center the box.
+ term_attr_reset
term_clear
y=$(expr \( $(term_lines) - ${h} \) / 2)
x=$(expr \( $(term_columns) - ${w} \) / 2)