Rev 1552 | Rev 1560 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1552 | Rev 1555 | ||
---|---|---|---|
Line 224... | Line 224... | ||
224 | char c; |
224 | char c; |
225 | 225 | ||
226 | if (newcons == active_console) |
226 | if (newcons == active_console) |
227 | return; |
227 | return; |
228 | 228 | ||
229 | if (newcons == -1) { |
229 | if (newcons == KERNEL_CONSOLE) { |
230 | if (active_console == -1) |
230 | if (active_console == KERNEL_CONSOLE) |
231 | return; |
231 | return; |
232 | active_console = -1; |
232 | active_console = KERNEL_CONSOLE; |
233 | curs_visibility(0); |
233 | curs_visibility(0); |
234 | 234 | ||
235 | if (kernel_pixmap == -1) { |
235 | if (kernel_pixmap == -1) { |
236 | /* store/restore unsupported */ |
236 | /* store/restore unsupported */ |
237 | set_style_col(DEFAULT_FOREGROUND, DEFAULT_BACKGROUND); |
237 | set_style_col(DEFAULT_FOREGROUND, DEFAULT_BACKGROUND); |
Line 304... | Line 304... | ||
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 >= '0') && (c < '0' + CONSOLE_COUNT)) { |
308 | if (c == '0') |
308 | if (c == '0') |
309 | change_console(-1); |
309 | change_console(KERNEL_CONSOLE); |
310 | else |
310 | else |
311 | change_console(c - '1'); |
311 | change_console(c - '1'); |
312 | break; |
312 | break; |
313 | } |
313 | } |
314 | 314 | ||
Line 340... | Line 340... | ||
340 | 340 | ||
341 | if ((consnum = find_free_connection()) == CONSOLE_COUNT) { |
341 | if ((consnum = find_free_connection()) == CONSOLE_COUNT) { |
342 | ipc_answer_fast(iid,ELIMIT,0,0); |
342 | ipc_answer_fast(iid,ELIMIT,0,0); |
343 | return; |
343 | return; |
344 | } |
344 | } |
345 | 345 | ||
- | 346 | gcons_notify_connect(consnum); |
|
346 | connections[consnum].used = 1; |
347 | connections[consnum].used = 1; |
347 | connections[consnum].client_phone = IPC_GET_ARG3(call); |
348 | connections[consnum].client_phone = IPC_GET_ARG3(call); |
348 | screenbuffer_clear(&(connections[consnum].screenbuffer)); |
349 | screenbuffer_clear(&(connections[consnum].screenbuffer)); |
349 | 350 | ||
350 | /* Accept the connection */ |
351 | /* Accept the connection */ |