From 20fb39b66298feb8b0ae970f7501efecf1dd0e82 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 17 Jan 2008 15:27:40 +0000 Subject: [PATCH] Translate PAGE UP and PAGE DOWN keys to respective escape sequences. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23587 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_debug_console.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/system/kernel/arch/x86/arch_debug_console.c b/src/system/kernel/arch/x86/arch_debug_console.c index 8ca293a8db..067736fdbe 100644 --- a/src/system/kernel/arch/x86/arch_debug_console.c +++ b/src/system/kernel/arch/x86/arch_debug_console.c @@ -59,6 +59,8 @@ enum keycodes { CURSOR_DOWN = 80, CURSOR_HOME = 71, CURSOR_END = 79, + PAGE_UP = 73, + PAGE_DOWN = 81, BREAK = 198, // TODO: >= 128 can't be valid DELETE = 83, @@ -290,6 +292,15 @@ arch_debug_blue_screen_getchar(void) case CURSOR_END: special = 0x80 | 'F'; return '\x1b'; + case PAGE_UP: + special = 0x80 | '5'; + special2 = '~'; + return '\x1b'; + case PAGE_DOWN: + special = 0x80 | '6'; + special2 = '~'; + return '\x1b'; + case DELETE: if (controlPressed && altPressed)