Subversion Repositories HelenOS

Rev

Rev 3905 | Rev 3924 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3905 Rev 3923
Line 34... Line 34...
34
 
34
 
35
#include <libc.h>
35
#include <libc.h>
36
#include <fb.h>
36
#include <fb.h>
37
#include <ipc/ipc.h>
37
#include <ipc/ipc.h>
38
#include <keys.h>
38
#include <keys.h>
-
 
39
#include <kbd/keycode.h>
39
#include <ipc/fb.h>
40
#include <ipc/fb.h>
40
#include <ipc/services.h>
41
#include <ipc/services.h>
41
#include <errno.h>
42
#include <errno.h>
42
#include <key_buffer.h>
43
#include <key_buffer.h>
43
#include <ipc/console.h>
44
#include <ipc/console.h>
Line 329... Line 330...
329
           
330
           
330
            /* switch to another virtual console */
331
            /* switch to another virtual console */
331
           
332
           
332
            conn = &connections[active_console];
333
            conn = &connections[active_console];
333
 
334
 
334
            if ((ev.key >= 0x101) && (ev.key < 0x101 +
335
            if ((ev.key >= KC_F1) && (ev.key < KC_F1 +
335
                CONSOLE_COUNT)) {
336
                CONSOLE_COUNT)) {
336
                if (ev.key == 0x112)
337
                if (ev.key == KC_F12)
337
                    change_console(KERNEL_CONSOLE);
338
                    change_console(KERNEL_CONSOLE);
338
                else
339
                else
339
                    change_console(ev.key - 0x101);
340
                    change_console(ev.key - KC_F1);
340
                break;
341
                break;
341
            }
342
            }
342
           
343
           
343
            /* if client is awaiting key, send it */
344
            /* if client is awaiting key, send it */
344
            if (conn->keyrequest_counter > 0) {    
345
            if (conn->keyrequest_counter > 0) {