...as an example, looking at this chunk in gntkeys.c, almost all of it is incorrect:
void gnt_init_keys() { const char *controls[] = {"", "c-", "ctrl-", "ctr-", "ctl-", NULL}; const char *alts[] = {"", "alt-", "a-", "m-", "meta-", NULL}; int c, a, ch; char key[32]; if (term == NULL) { term = getenv("TERM"); if (!term) term = ""; /* Just in case */ } if (strstr(term, "xterm") == term || strcmp(term, "rxvt") == 0) { gnt_key_cup = "\033" "[1;5A"; gnt_key_cdown = "\033" "[1;5B"; gnt_key_cright = "\033" "[1;5C"; gnt_key_cleft = "\033" "[1;5D"; } else if (strstr(term, "screen") == term || strcmp(term, "rxvt-unicode") => gnt_key_cup = "\033" "Oa"; gnt_key_cdown = "\033" "Ob"; gnt_key_cright = "\033" "Oc"; gnt_key_cleft = "\033" "Od"; } (there's more, of course) -- Thomas E. Dickey <dic...@invisible-island.net> http://invisible-island.net ftp://invisible-island.net
signature.asc
Description: Digital signature