diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-03-14 14:27:08 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-16 09:26:20 +0200 |
commit | 81c0d5a66295024d0a42e3d28efcd102a32f93c3 (patch) | |
tree | da8afe97d7513f557980ce7aa39bc879fe79fc2a /ui/curses.c | |
parent | dea1b0bdd8b0bb9d76a012fd0f234ba1768a4a93 (diff) |
console: add qemu_console_is_*
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/curses.c')
-rw-r--r-- | ui/curses.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/curses.c b/ui/curses.c index ed9e65c7f0..a85a7da316 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -56,7 +56,7 @@ static void curses_update(DisplayChangeListener *dcl, static void curses_calc_pad(void) { - if (is_fixedsize_console()) { + if (qemu_console_is_fixedsize(NULL)) { width = gwidth; height = gheight; } else { @@ -143,8 +143,9 @@ static void curses_cursor_position(DisplayChangeListener *dcl, curs_set(1); /* it seems that curs_set(1) must always be called before * curs_set(2) for the latter to have effect */ - if (!is_graphic_console()) + if (!qemu_console_is_graphic(NULL)) { curs_set(2); + } return; } } @@ -252,7 +253,7 @@ static void curses_refresh(DisplayChangeListener *dcl) if (keycode == -1) continue; - if (is_graphic_console()) { + if (qemu_console_is_graphic(NULL)) { /* since terminals don't know about key press and release * events, we need to emit both for each key received */ if (keycode & SHIFT) |