mirror of
https://github.com/troglobit/finit.git
synced 2026-10-27 12:20:54 +00:00
Reinitialize screen at shutdown and when in debug mode
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
992bab2f8f
commit
f858d94d2a
2 files changed
+11
No files matched your search
@@ -110,6 +110,13 @@ void print(int action, const char *fmt, ...)
|
||||
if (log_is_silent())
|
||||
return;
|
||||
|
||||
/*
|
||||
* In debug mode we must reinitialize often, user may be
|
||||
* resizing their terminal to cope with debug output.
|
||||
*/
|
||||
if (log_is_debug())
|
||||
screen_init();
|
||||
|
||||
if (fmt) {
|
||||
va_start(ap, fmt);
|
||||
printv(fmt, ap);
|
||||
|
||||
Reference in new issue
Block a user