diff options
author | P. 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) |
commit | 22a728867d6ad1f8f61b91ebc323dfeebaea5e6a (patch) | |
tree | 03ce0911ffee9f1df6b2ac8fd57d1446405467c4 | |
parent | ae3179090416c12c8891a5dc283b1426fbda045b (diff) | |
download | firman.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.sh | 1 |
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) |