Changeset a8b2b5b in mainline
- Timestamp:
- 2006-06-04T18:45:35Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ec9623d
- Parents:
- d32af35
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
console/console.c
rd32af35 ra8b2b5b 248 248 /* This call can preempt, but we are already at the end */ 249 249 sync_send_2(fb_info.phone, FB_DRAW_TEXT_DATA, 0, 0, NULL, NULL); 250 curs_visibility( 1);250 curs_visibility(conn->screenbuffer.is_cursor_visible); 251 251 } else { 252 curs_visibility(0);253 252 clrscr(); 254 253 … … 260 259 } 261 260 262 curs_visibility( 1);261 curs_visibility(conn->screenbuffer.is_cursor_visible); 263 262 } 264 263 } … … 381 380 set_style_col(arg1, arg2); 382 381 382 break; 383 case CONSOLE_CURSOR_VISIBILITY: 384 arg1 = IPC_GET_ARG1(call); 385 connections[consnum].screenbuffer.is_cursor_visible = arg1; 386 if (consnum == active_console) 387 curs_visibility(arg1); 383 388 break; 384 389 case CONSOLE_GETCHAR: … … 394 399 continue; 395 400 }; 396 keybuffer_pop(&(connections[consnum].keybuffer), ( char*)&arg1);401 keybuffer_pop(&(connections[consnum].keybuffer), (int *)&arg1); 397 402 398 403 break; … … 465 470 async_new_connection(phonehash, 0, NULL, keyboard_events); 466 471 467 sync_send_2(fb_info.phone, FB_CURSOR_GOTO, 0, 0, NULL, NULL);468 nsend_call(fb_info.phone, FB_CURSOR_VISIBILITY, 1);472 curs_goto(0,0); 473 curs_visibility(connections[active_console].screenbuffer.is_cursor_visible); 469 474 470 475 /* Register at NS */ -
console/console.h
rd32af35 ra8b2b5b 41 41 #define CONSOLE_FLUSH 1031 42 42 #define CONSOLE_SET_STYLE 1032 43 #define CONSOLE_CURSOR_VISIBILITY 1033 43 44 44 45 #endif -
console/screenbuffer.c
rd32af35 ra8b2b5b 61 61 scr->style.fg_color = DEFAULT_FOREGROUND; 62 62 scr->style.bg_color = DEFAULT_BACKGROUND; 63 scr->is_cursor_visible = 1; 63 64 64 65 screenbuffer_clear(scr); -
console/screenbuffer.h
rd32af35 ra8b2b5b 53 53 style_t style; /**< Current style */ 54 54 unsigned int top_line; /**< Points to buffer[][] line that will be printed at screen as the first line */ 55 unsigned char is_cursor_visible; /**< Cursor state - default is visible */ 55 56 } screenbuffer_t; 56 57 -
tetris/screen.c
rd32af35 ra8b2b5b 114 114 { 115 115 con_phone = get_fd_phone(1); 116 send_call(con_phone, CONSOLE_CURSOR_VISIBILITY, 0); 116 117 resume_normal(); 117 118 scr_clear();
Note:
See TracChangeset
for help on using the changeset viewer.