ui/ncurses: move getch() out of process_key callbacks
authorJeremy Kerr <jk@ozlabs.org>
Fri, 17 May 2013 02:02:41 +0000 (10:02 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 21 May 2013 07:29:43 +0000 (15:29 +0800)
commita610837ff38f5cc80bcbad465a80ab920e67927d
tree3e157da8508053daef1d400e8dfa3ec7c48e9f56
parent3461b6ad5cb90f1448360d0eb04dd661ae477610
ui/ncurses: move getch() out of process_key callbacks

All process_key callbacks will want to query the key that was pressed,
so do the getch() once in cui_process_key, and pass the result to the
callback.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-boot-editor.c
ui/ncurses/nc-cui.c
ui/ncurses/nc-menu.c
ui/ncurses/nc-scr.c
ui/ncurses/nc-scr.h