comparison console/libgnt/gntbox.c @ 14876:70623f0d5cdc

[gaim-migrate @ 17645] Use terminfo/termcap information (from ncurses) as much as possible. There still need to be some manual 'refinement' based on $TERM. I'll see if I can get rid of those. Also, I am probably going to allow users to provide information that terminfo can't provide, like the keycode for ctrl+up etc. Let me know if any of the keybinding doesn't work. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 01 Nov 2006 03:38:23 +0000
parents c7651586e27b
children d059cfbb62ae
comparison
equal deleted inserted replaced
14875:7357d46ba817 14876:70623f0d5cdc
283 283
284 now = box->active; 284 now = box->active;
285 285
286 if (text[0] == 27) 286 if (text[0] == 27)
287 { 287 {
288 if (strcmp(text+1, GNT_KEY_LEFT) == 0) 288 if (strcmp(text, GNT_KEY_LEFT) == 0)
289 { 289 {
290 find_prev_focus(box); 290 find_prev_focus(box);
291 } 291 }
292 else if (strcmp(text+1, GNT_KEY_RIGHT) == 0) 292 else if (strcmp(text, GNT_KEY_RIGHT) == 0)
293 { 293 {
294 find_next_focus(box); 294 find_next_focus(box);
295 } 295 }
296 } 296 }
297 else if (text[0] == '\t') 297 else if (text[0] == '\t')