From: Jeremy Kerr Date: Fri, 17 May 2013 02:02:41 +0000 (+0800) Subject: ui/ncurses: move getch() out of process_key callbacks X-Git-Tag: v1.0.0~596 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=a610837ff38f5cc80bcbad465a80ab920e67927d;hp=a610837ff38f5cc80bcbad465a80ab920e67927d 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 ---