Skip to content

Commit

Permalink
Control + U support #159
Browse files Browse the repository at this point in the history
  • Loading branch information
double-fault committed Jan 22, 2017
1 parent db5fe57 commit fd6b8f4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions platform/pc/drv/ps2/kbd/kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,20 @@ void key_handler_util(int key)
,__crsr_start,__crsr_end);
return;
}
else if (key == 'u' || key == 'U')
{
while (index_scank != 0) {printk ("\b"); index_scank --;}
index_scank = 0;
virtual_index_scank = 0;
virtual_cursor_pos = 0;
buffer_scank [index_scank] = 0;

video_drivers[VGA_VIDEO_DRIVER_INDEX]->update_cursor
(video_drivers[VGA_VIDEO_DRIVER_INDEX]->video_row,video_drivers[VGA_VIDEO_DRIVER_INDEX]->video_column - virtual_cursor_pos
,__crsr_start,__crsr_end);
virtual_cursor_pos = 0;
return;
}
else if (key == 'c' || key == 'C')
{
return;
Expand Down

0 comments on commit fd6b8f4

Please sign in to comment.