From 22a728867d6ad1f8f61b91ebc323dfeebaea5e6a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 29 Oct 2015 16:51:08 -0400 Subject: _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). --- 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) -- cgit v0.9.1