diff options
author | Alexander Graf <agraf@suse.de> | 2011-06-06 06:53:52 +0200 |
---|---|---|
committer | Junfeng Dong <junfeng.dong@intel.com> | 2013-11-19 18:57:38 +0800 |
commit | de5bebb7702c3ba855962407256fac19446a71bc (patch) | |
tree | 35ff727f55d7eb1fa22f99726fb5254c12cfa8ad | |
parent | 1b4109e22c41c1e29c59c21dd326e54a36b47e0f (diff) | |
download | qemu-de5bebb7702c3ba855962407256fac19446a71bc.tar.gz qemu-de5bebb7702c3ba855962407256fac19446a71bc.tar.bz2 qemu-de5bebb7702c3ba855962407256fac19446a71bc.zip |
console: add question-mark escape operator
Some termcaps (found using SLES11SP1) use [? sequences. According to man
console_codes (http://linux.die.net/man/4/console_codes) the question mark
is a nop and should simply be ignored.
This patch does exactly that, rendering screen output readable when
outputting guest serial consoles to the graphical console emulator.
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | ui/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c index e3e82979d..8784cd009 100644 --- a/ui/console.c +++ b/ui/console.c @@ -897,7 +897,7 @@ static void console_putchar(QemuConsole *s, int ch) } else { if (s->nb_esc_params < MAX_ESC_PARAMS) s->nb_esc_params++; - if (ch == ';') + if (ch == ';' || ch == '?') break; #ifdef DEBUG_CONSOLE fprintf(stderr, "escape sequence CSI%d;%d%c, %d parameters\n", |