diff options
author | Michael Brown | 2014-01-22 23:42:59 +0100 |
---|---|---|
committer | Michael Brown | 2014-01-22 23:43:55 +0100 |
commit | 3ee2c4ac1ceeaa188f16e4b9979ecbf238bf97e1 (patch) | |
tree | 4cbfe86308cdd78a2f5dba30e6ac596a33c709f0 /src/core/fbcon.c | |
parent | [cmdline] Add margin options to the "console" command (diff) | |
download | ipxe-3ee2c4ac1ceeaa188f16e4b9979ecbf238bf97e1.tar.gz ipxe-3ee2c4ac1ceeaa188f16e4b9979ecbf238bf97e1.tar.xz ipxe-3ee2c4ac1ceeaa188f16e4b9979ecbf238bf97e1.zip |
[fbcon] Allow ANSI CUP with missing arguments
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/fbcon.c')
-rw-r--r-- | src/core/fbcon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/fbcon.c b/src/core/fbcon.c index 32ae43be..72d6a678 100644 --- a/src/core/fbcon.c +++ b/src/core/fbcon.c @@ -294,10 +294,10 @@ static void fbcon_handle_cup ( struct ansiesc_context *ctx, fbcon_draw_cursor ( fbcon, 0 ); fbcon->xpos = cx; if ( fbcon->xpos >= fbcon->character.width ) - fbcon->xpos = ( fbcon->character.width - 1 ); + fbcon->xpos = 0; fbcon->ypos = cy; if ( fbcon->ypos >= fbcon->character.height ) - fbcon->ypos = ( fbcon->character.height - 1 ); + fbcon->ypos = 0; fbcon_draw_cursor ( fbcon, fbcon->show_cursor ); } |