Rev 1555 | Rev 1563 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1555 | Rev 1560 | ||
---|---|---|---|
Line 282... | Line 282... | ||
282 | static void keyboard_events(ipc_callid_t iid, ipc_call_t *icall) |
282 | static void keyboard_events(ipc_callid_t iid, ipc_call_t *icall) |
283 | { |
283 | { |
284 | ipc_callid_t callid; |
284 | ipc_callid_t callid; |
285 | ipc_call_t call; |
285 | ipc_call_t call; |
286 | int retval; |
286 | int retval; |
287 | char c; |
287 | int c; |
288 | connection_t *conn; |
288 | connection_t *conn; |
289 | 289 | ||
290 | /* Ignore parameters, the connection is alread opened */ |
290 | /* Ignore parameters, the connection is alread opened */ |
291 | while (1) { |
291 | while (1) { |
292 | callid = async_get_call(&call); |
292 | callid = async_get_call(&call); |
Line 302... | Line 302... | ||
302 | c = IPC_GET_ARG1(call); |
302 | c = IPC_GET_ARG1(call); |
303 | /* switch to another virtual console */ |
303 | /* switch to another virtual console */ |
304 | 304 | ||
305 | conn = &connections[active_console]; |
305 | conn = &connections[active_console]; |
306 | // if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) { |
306 | // if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) { |
307 | if ((c >= '0') && (c < '0' + CONSOLE_COUNT)) { |
307 | if ((c >= 0x101) && (c < 0x101 + CONSOLE_COUNT)) { |
308 | if (c == '0') |
308 | if (c == 0x112) |
309 | change_console(KERNEL_CONSOLE); |
309 | change_console(KERNEL_CONSOLE); |
310 | else |
310 | else |
311 | change_console(c - '1'); |
311 | change_console(c - 0x101); |
312 | break; |
312 | break; |
313 | } |
313 | } |
314 | 314 | ||
315 | /* if client is awaiting key, send it */ |
315 | /* if client is awaiting key, send it */ |
316 | if (conn->keyrequest_counter > 0) { |
316 | if (conn->keyrequest_counter > 0) { |