libgnt/libgnt

Put terminal into application mode on refresh
refresh-fixes
2019-04-06, Petteri Pitkänen
5fc50c19d090
Parents e53045dbed62
Children 25df955b4486
Put terminal into application mode on refresh

The arrow keys stopped working when running finch in screen and switching
between different terminals (for instance xterm and st).
  • +1 -2
    gntmain.c
  • +2 -0
    gntwm.c
  • --- a/gntmain.c Fri Apr 05 23:40:03 2019 +0000
    +++ b/gntmain.c Sat Apr 06 16:05:38 2019 +0200
    @@ -607,8 +607,6 @@
    initscr();
    typeahead(-1);
    noecho();
    - curs_set(0);
    - keypad(stdscr, 1);
    gnt_init_keys();
    gnt_init_styles();
    @@ -653,6 +651,7 @@
    signal(SIGPIPE, SIG_IGN);
    init_wm();
    + refresh_screen();
    clipboard = g_object_new(GNT_TYPE_CLIPBOARD, NULL);
    }
    --- a/gntwm.c Fri Apr 05 23:40:03 2019 +0000
    +++ b/gntwm.c Sat Apr 06 16:05:38 2019 +0200
    @@ -1133,7 +1133,9 @@
    gnt_ws_draw_taskbar(wm->cws, TRUE);
    update_screen(wm);
    +
    curs_set(0); /* endwin resets the cursor to normal */
    + keypad(stdscr, 1);
    return TRUE;
    }