]> git.ozlabs.org Git - petitboot/commitdiff
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)
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>

No differences found