Changeset 1f83244 in mainline for console/console.c
- Timestamp:
- 2006-06-16T20:00:29Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b34fab6
- Parents:
- d552ab9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
console/console.c
rd552ab9 r1f83244 229 229 curs_visibility(0); 230 230 231 async_serialize_start(); 231 232 if (kernel_pixmap == -1) { 232 233 /* store/restore unsupported */ … … 238 239 kernel_pixmap = -1; 239 240 } 241 async_serialize_end(); 240 242 241 243 __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE); … … 243 245 } 244 246 247 async_serialize_start(); 248 245 249 if (console_pixmap != -1) { 246 250 kernel_pixmap = switch_screens(console_pixmap); … … 281 285 curs_goto(conn->screenbuffer.position_y, conn->screenbuffer.position_x); 282 286 curs_visibility(conn->screenbuffer.is_cursor_visible); 287 288 async_serialize_end(); 283 289 } 284 290 … … 291 297 int c; 292 298 connection_t *conn; 299 int newcon; 293 300 294 301 /* Ignore parameters, the connection is alread opened */ … … 299 306 /* TODO: Handle hangup */ 300 307 return; 308 case KBD_MS_LEFT: 309 newcon = gcons_mouse_btn(IPC_GET_ARG1(call)); 310 if (newcon != -1) 311 change_console(newcon); 312 break; 301 313 case KBD_MS_MOVE: 302 314 gcons_mouse_move(IPC_GET_ARG1(call), IPC_GET_ARG2(call)); … … 312 324 // if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) { 313 325 if ((c >= 0x101) && (c < 0x101 + CONSOLE_COUNT)) { 314 async_serialize_start();315 326 if (c == 0x112) 316 327 change_console(KERNEL_CONSOLE); 317 328 else 318 329 change_console(c - 0x101); 319 async_serialize_end();320 330 break; 321 331 }
Note:
See TracChangeset
for help on using the changeset viewer.