diff options
author | Alexander Graf <agraf@suse.de> | 2011-06-06 06:53:52 +0200 |
---|---|---|
committer | hyokeun <hyokeun.jeon@samsung.com> | 2016-09-06 15:55:34 +0900 |
commit | 769de9d98c2c51215477bdcbdd66a8b114e7e6a0 (patch) | |
tree | 701db01fef98ea04d1ce78f416288f888802b008 | |
parent | b1260507fe2503176154d433909f35578f0d1626 (diff) | |
download | qemu-769de9d98c2c51215477bdcbdd66a8b114e7e6a0.tar.gz qemu-769de9d98c2c51215477bdcbdd66a8b114e7e6a0.tar.bz2 qemu-769de9d98c2c51215477bdcbdd66a8b114e7e6a0.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 c24bfe422..44b46fd3d 100644 --- a/ui/console.c +++ b/ui/console.c @@ -868,7 +868,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; trace_console_putchar_csi(s->esc_params[0], s->esc_params[1], ch, s->nb_esc_params); |