From fd6b8f4d7bb6a2743b1b08cba508eb8dc7cad66b Mon Sep 17 00:00:00 2001 From: Fortunate-MAN Date: Sun, 22 Jan 2017 11:56:37 +0530 Subject: [PATCH] Control + U support #159 --- platform/pc/drv/ps2/kbd/kbd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/platform/pc/drv/ps2/kbd/kbd.c b/platform/pc/drv/ps2/kbd/kbd.c index 4c86c3b..7c93182 100644 --- a/platform/pc/drv/ps2/kbd/kbd.c +++ b/platform/pc/drv/ps2/kbd/kbd.c @@ -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;