Commit c7a7002c authored by Peter Pentchev's avatar Peter Pentchev

Reset attributes on suspend, restore on resume.

parent d69b6ea0
......@@ -3,6 +3,8 @@ Change log for hexer, the multi-view binary editor
0.2.2 not yet ;)
- reset the terminal color attributes on exit
(reported by Jakub Wilk <jwilk@debian.org>)
- also reset the attributes on suspend (Ctrl-Z) and restore
them on resume
0.2.1 2015/12/10
- fix some more typographical errors
......
......@@ -88,6 +88,7 @@ sigtstp_handler(int sig __unused)
tio_return();
tio_clear_to_eol();
tio_printf("@AbStopped@~. Type `fg' to restart @Abhexer@~.\n");
tio_reset_attributes();
tio_flush();
kill(0, SIGSTOP);
return SIG_RVAL;
......
......@@ -2153,6 +2153,7 @@ tio_restart(void)
if (t_application_mode_recover) tio_start_application();
tcsetattr(0, TCSANOW, &ts_recover);
tio_init(0);
tio_normal();
}
/* tio_restart */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment