Skip to content

Commit

Permalink
[fbcon] Allow ANSI CUP with missing arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Jan 22, 2014
1 parent 20a90a4 commit 3ee2c4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/fbcon.c
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 3ee2c4a

Please sign in to comment.