diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-01-22 22:42:59 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-01-22 22:43:55 +0000 |
commit | 3ee2c4ac1ceeaa188f16e4b9979ecbf238bf97e1 (patch) | |
tree | 4cbfe86308cdd78a2f5dba30e6ac596a33c709f0 /src | |
parent | 20a90a40c3b04857d9691cf60528ac06446d8740 (diff) | |
download | ipxe-3ee2c4ac1ceeaa188f16e4b9979ecbf238bf97e1.zip ipxe-3ee2c4ac1ceeaa188f16e4b9979ecbf238bf97e1.tar.gz ipxe-3ee2c4ac1ceeaa188f16e4b9979ecbf238bf97e1.tar.bz2 |
[fbcon] Allow ANSI CUP with missing arguments
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-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 32ae43b..72d6a67 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 ); } |