tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

curses: Home key sends 0x162 in tmux



Hello,

the Home key sends 0x162 instead of 0x106 in tmux.  A small test program to be compiled with

cc main.c -lcurses

and quit with CTRL-c shows the hex key codes:

$ cat main.c                                                                                                                                                                                   
#include <curses.h>

int
main()
{
        initscr();
        noecho();
        cbreak();
        keypad(stdscr, TRUE);

        while (1) {
                printw("0x%x\n", getch());
                refresh();
        }

        return 0;
}


Home | Main Index | Thread Index | Old Index