Add lost part of GRUB_TERM_KEY_* commit

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-19 22:12:25 +02:00
parent 0a6fbf2342
commit 5d6015ddf6
1 changed files with 10 additions and 10 deletions

View File

@ -115,19 +115,19 @@ grub_ncurses_getkey (struct grub_term_input *term __attribute__ ((unused)))
case ERR: case ERR:
return -1; return -1;
case KEY_LEFT: case KEY_LEFT:
c = GRUB_TERM_LEFT; c = GRUB_TERM_KEY_LEFT;
break; break;
case KEY_RIGHT: case KEY_RIGHT:
c = GRUB_TERM_RIGHT; c = GRUB_TERM_KEY_RIGHT;
break; break;
case KEY_UP: case KEY_UP:
c = GRUB_TERM_UP; c = GRUB_TERM_KEY_UP;
break; break;
case KEY_DOWN: case KEY_DOWN:
c = GRUB_TERM_DOWN; c = GRUB_TERM_KEY_DOWN;
break; break;
case KEY_IC: case KEY_IC:
@ -135,30 +135,30 @@ grub_ncurses_getkey (struct grub_term_input *term __attribute__ ((unused)))
break; break;
case KEY_DC: case KEY_DC:
c = GRUB_TERM_DC; c = GRUB_TERM_KEY_DC;
break; break;
case KEY_BACKSPACE: case KEY_BACKSPACE:
/* XXX: For some reason ncurses on xterm does not return /* XXX: For some reason ncurses on xterm does not return
KEY_BACKSPACE. */ KEY_BACKSPACE. */
case 127: case 127:
c = GRUB_TERM_BACKSPACE; c = '\b';
break; break;
case KEY_HOME: case KEY_HOME:
c = GRUB_TERM_HOME; c = GRUB_TERM_KEY_HOME;
break; break;
case KEY_END: case KEY_END:
c = GRUB_TERM_END; c = GRUB_TERM_KEY_END;
break; break;
case KEY_NPAGE: case KEY_NPAGE:
c = GRUB_TERM_NPAGE; c = GRUB_TERM_KEY_NPAGE;
break; break;
case KEY_PPAGE: case KEY_PPAGE:
c = GRUB_TERM_PPAGE; c = GRUB_TERM_KEY_PPAGE;
break; break;
} }