console: Clean up confusing indentation in console_putchar()

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:06 +01:00 committed by Stefan Hajnoczi
parent 217bfb445b
commit f94a950f79
1 changed files with 9 additions and 9 deletions

View File

@ -1009,16 +1009,16 @@ static void console_putchar(TextConsole *s, int ch)
console_clear_xy(s, x, y); console_clear_xy(s, x, y);
} }
} }
break; break;
} }
case 'K': case 'K':
switch (s->esc_params[0]) { switch (s->esc_params[0]) {
case 0: case 0:
/* clear to eol */ /* clear to eol */
for(x = s->x; x < s->width; x++) { for(x = s->x; x < s->width; x++) {
console_clear_xy(s, x, s->y); console_clear_xy(s, x, s->y);
} }
break; break;
case 1: case 1:
/* clear from beginning of line */ /* clear from beginning of line */
for (x = 0; x <= s->x; x++) { for (x = 0; x <= s->x; x++) {
@ -1030,12 +1030,12 @@ static void console_putchar(TextConsole *s, int ch)
for(x = 0; x < s->width; x++) { for(x = 0; x < s->width; x++) {
console_clear_xy(s, x, s->y); console_clear_xy(s, x, s->y);
} }
break; break;
} }
break; break;
case 'm': case 'm':
console_handle_escape(s); console_handle_escape(s);
break; break;
case 'n': case 'n':
/* report cursor position */ /* report cursor position */
/* TODO: send ESC[row;colR */ /* TODO: send ESC[row;colR */