aboutsummaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-11-22 11:59:06 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-12-06 09:56:40 +0000
commitf94a950f790aabb33fcb75f0a4a3bbaaa6e3810b (patch)
treebdf63dc3bb1c23f9b8e9deff169cc90bbb644f2c /console.c
parent217bfb445b54db618a30f3a39170bebd9fd9dbf2 (diff)
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>
Diffstat (limited to 'console.c')
-rw-r--r--console.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/console.c b/console.c
index f6fe44195b..374fcba4b5 100644
--- a/console.c
+++ b/console.c
@@ -1009,16 +1009,16 @@ static void console_putchar(TextConsole *s, int ch)
console_clear_xy(s, x, y);
}
}
- break;
+ break;
}
case 'K':
switch (s->esc_params[0]) {
case 0:
- /* clear to eol */
- for(x = s->x; x < s->width; x++) {
+ /* clear to eol */
+ for(x = s->x; x < s->width; x++) {
console_clear_xy(s, x, s->y);
- }
- break;
+ }
+ break;
case 1:
/* clear from beginning of line */
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++) {
console_clear_xy(s, x, s->y);
}
- break;
- }
+ break;
+ }
break;
case 'm':
- console_handle_escape(s);
- break;
+ console_handle_escape(s);
+ break;
case 'n':
/* report cursor position */
/* TODO: send ESC[row;colR */