Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1517 → Rev 1516

/uspace/trunk/console/console.c
171,25 → 171,16
/* got key from keyboard driver */
retval = 0;
c = IPC_GET_ARG1(call) - '0';
c = IPC_GET_ARG1(call);
/* switch to another virtual console */
conn = &connections[active_console];
// if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) {
if ((c >= 0) && (c < CONSOLE_COUNT)) {
if ((c >= '1') && (c < '1' + CONSOLE_COUNT)) {
/*FIXME: draw another console content from buffer */
if (c == active_console)
if (c - '1' == active_console)
break;
if (c == 0) {
/* switch to kernel console*/
__SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE);
} else {
active_console = c;
}
active_console = c - '1';
conn = &connections[active_console];
 
ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 0, NULL, NULL);
199,7 → 190,7
for (j = 0; j < conn->screenbuffer.size_y; j++)
interbuffer[i + j*conn->screenbuffer.size_x] = *get_field_at(&(conn->screenbuffer),i, j);
sync_send_2(fb_info.phone, FB_DRAW_TEXT_DATA, 0, 0, NULL, NULL);
ipc_call_sync(fb_info.phone, FB_DRAW_TEXT_DATA, 0, NULL);
} else {
 
ipc_call_async_2(fb_info.phone, FB_CLEAR, 0, 0, NULL, NULL);