5 #include "../../util/cache.h"
6 #include "../../util/debug.h"
7 #include "../browser.h"
8 #include "../helpline.h"
11 #include "../libslang.h"
12 #include "../keysyms.h"
14 static volatile int ui__need_resize;
22 if (force || ui__need_resize) {
25 SLtt_get_screen_size();
36 static void ui__setup_sigwinch(
void)
50 struct timeval timeout, *ptimeout = delay_secs ? &timeout :
NULL;
60 timeout.
tv_sec = delay_secs;
98 static void ui__signal(
int sig)
101 psignal(sig,
"perf");
112 pr_err(
"TUI initialization failed.\n");
118 newtSetSuspendCallback(newt_suspend,
NULL);
123 signal(
SIGFPE, ui__signal);
124 signal(
SIGINT, ui__signal);
140 "Press any key...", 0);
142 SLtt_set_cursor_visibility(1);