diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-31 11:39:16 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-31 11:39:16 +0100 |
commit | 07b44a514c7dec2aa4344511f5ecd19210c9bb8c (patch) | |
tree | 16d5da0fd4418e8331e367b8bb0b42fab303ccd2 /fbpdf.c | |
parent | 620c38f6f45a8708d9dd82f638beb06789b6c7d1 (diff) | |
download | fbida-07b44a514c7dec2aa4344511f5ecd19210c9bb8c.tar.gz |
tweak console switching
Diffstat (limited to 'fbpdf.c')
-rw-r--r-- | fbpdf.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -198,9 +198,15 @@ static void cleanup_and_exit(int code) exit(code); } -static void console_switch_redraw(void) +static void console_switch_suspend(void) +{ + kbd_suspend(); +} + +static void console_switch_resume(void) { gfx->restore_display(); + kbd_resume(); } static void @@ -319,7 +325,8 @@ int main(int argc, char *argv[]) } exit_signals_init(); signal(SIGTSTP,SIG_IGN); - if (console_switch_init(console_switch_redraw) < 0) { + if (console_switch_init(console_switch_suspend, + console_switch_resume) < 0) { fprintf(stderr, "NOTICE: No vt switching available on terminal.\n"); fprintf(stderr, "NOTICE: Not started from linux console? CONFIG_VT=n?\n"); if (framebuffer) { |