sim-card
/
qemu
Archived
10
0
Fork 0

console: Fix console_putchar() for CSI J

It falls through to the code for CSI K.  "Erase Down" also does "Erase
End of Line", "Erase Up" also does "Erase Start of Line", and "Erase
Screen" also does "Erase Line".  Happens not to be visible.  Fix it
anyway.  Spotted by Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Markus Armbruster 2011-11-22 11:59:07 +01:00 committed by Stefan Hajnoczi
parent f94a950f79
commit 95d8f9f41c
1 changed files with 1 additions and 0 deletions

View File

@ -1011,6 +1011,7 @@ static void console_putchar(TextConsole *s, int ch)
}
break;
}
break;
case 'K':
switch (s->esc_params[0]) {
case 0: