Rev 1522 | Rev 1525 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1522 | Rev 1523 | ||
---|---|---|---|
Line 179... | Line 179... | ||
179 | conn = &connections[active_console]; |
179 | conn = &connections[active_console]; |
180 | // if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) { |
180 | // if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) { |
181 | if ((c >= '0') && (c < '0' + CONSOLE_COUNT)) { |
181 | if ((c >= '0') && (c < '0' + CONSOLE_COUNT)) { |
182 | if (c == '0') { |
182 | if (c == '0') { |
183 | /* switch to kernel console*/ |
183 | /* switch to kernel console*/ |
184 | sync_send_2(fb_info.phone, FB_CURSOR_VISIBILITY, 0, 0, NULL, NULL); |
184 | nsend_call(fb_info.phone, FB_CURSOR_VISIBILITY, 0); |
185 | nsend_call_2(fb_info.phone, FB_SET_STYLE, DEFAULT_FOREGROUND_COLOR, DEFAULT_BACKGROUND_COLOR); |
185 | nsend_call_2(fb_info.phone, FB_SET_STYLE, DEFAULT_FOREGROUND_COLOR, DEFAULT_BACKGROUND_COLOR); |
186 | nsend_call(fb_info.phone, FB_CLEAR, 0); |
186 | nsend_call(fb_info.phone, FB_CLEAR, 0); |
187 | /* FIXME: restore kernel console */ |
187 | /* FIXME: restore kernel console */ |
188 | __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE); |
188 | __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE); |
189 | break; |
189 | break; |
Line 288... | Line 288... | ||
288 | case CONSOLE_GOTO: |
288 | case CONSOLE_GOTO: |
289 | 289 | ||
290 | screenbuffer_goto(&(connections[consnum].screenbuffer), IPC_GET_ARG1(call), IPC_GET_ARG2(call)); |
290 | screenbuffer_goto(&(connections[consnum].screenbuffer), IPC_GET_ARG1(call), IPC_GET_ARG2(call)); |
291 | 291 | ||
292 | break; |
292 | break; |
- | 293 | ||
293 | case CONSOLE_GETSIZE: |
294 | case CONSOLE_GETSIZE: |
294 | arg1 = fb_info.cols; |
295 | arg1 = fb_info.cols; |
295 | arg2 = fb_info.rows; |
296 | arg2 = fb_info.rows; |
296 | break; |
297 | break; |
- | 298 | case CONSOLE_FLUSH: |
|
- | 299 | sync_send_2(fb_info.phone, FB_FLUSH, 0, 0, NULL, NULL); |
|
297 | 300 | break; |
|
298 | case CONSOLE_GETCHAR: |
301 | case CONSOLE_GETCHAR: |
299 | if (keybuffer_empty(&(connections[consnum].keybuffer))) { |
302 | if (keybuffer_empty(&(connections[consnum].keybuffer))) { |
300 | /* buffer is empty -> store request */ |
303 | /* buffer is empty -> store request */ |
301 | if (connections[consnum].keyrequest_counter < MAX_KEYREQUESTS_BUFFERED) { |
304 | if (connections[consnum].keyrequest_counter < MAX_KEYREQUESTS_BUFFERED) { |
302 | fifo_push(connections[consnum].keyrequests, callid); |
305 | fifo_push(connections[consnum].keyrequests, callid); |