Changeset 0ed2e0e in mainline
- Timestamp:
- 2009-06-15T18:50:11Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af7383f
- Parents:
- 87d3ecf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/console/console.c
r87d3ecf r0ed2e0e 288 288 static void write_char(console_t *cons, wchar_t ch) 289 289 { 290 bool flush_cursor = false; 291 290 292 switch (ch) { 291 293 case '\n': 292 294 fb_pending_flush(); 295 flush_cursor = true; 293 296 cons->scr.position_y++; 294 297 cons->scr.position_x = 0; … … 316 319 } 317 320 318 if (cons->scr.position_x >= cons->scr.size_x) 321 if (cons->scr.position_x >= cons->scr.size_x) { 322 flush_cursor = true; 319 323 cons->scr.position_y++; 324 } 320 325 321 326 if (cons->scr.position_y >= cons->scr.size_y) { … … 328 333 async_msg_1(fb_info.phone, FB_SCROLL, 1); 329 334 } 330 335 336 if (cons == active_console && flush_cursor) 337 curs_goto(cons->scr.position_x, cons->scr.position_y); 331 338 cons->scr.position_x = cons->scr.position_x % cons->scr.size_x; 332 339 } … … 482 489 write_char(cons, ch); 483 490 } 484 485 if (cons == active_console)486 curs_goto(cons->scr.position_x, cons->scr.position_y);487 491 488 492 async_serialize_end();
Note:
See TracChangeset
for help on using the changeset viewer.