Changeset 88739997 in mainline
- Timestamp:
- 2024-09-18T10:05:08Z (3 months ago)
- Branches:
- master
- Children:
- 36fcd0a
- Parents:
- 9aa51406
- git-author:
- Jiri Svoboda <jiri@…> (2024-09-17 17:04:24)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-09-18 10:05:08)
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/terminal/terminal.c
r9aa51406 r88739997 1040 1040 terminal_t **rterm) 1041 1041 { 1042 printf("terminal_create(%zu, %zu)\n", width, height);1043 1044 1042 errno_t rc; 1045 1043 -
uspace/lib/termui/src/history.c
r9aa51406 r88739997 604 604 } 605 605 606 //printf("Counted at least %d viewport rows.\n", rows);607 608 606 return (rows > max) ? max : rows; 609 607 } … … 647 645 assert(history->row_delta <= SIZE_MAX - row); 648 646 649 //printf("Iterating history rows: %d..%d\n", row, row + count);650 651 647 size_t current_line = history->viewport_top; 652 648 size_t delta = history->row_delta + (size_t) row; … … 678 674 delta = 0; 679 675 680 //printf("Line %zu, %zu rows\n", current_line, _history_line_rows(history, current_line));681 682 676 /* Callback for each full row. */ 683 677 while (count > 0 && line_offset + history->cols <= line.len) { 684 678 assert(line.idx + line_offset <= history->cells.buf_len - history->cols); 685 //printf("Iterating row %d in line %zu\n", row, current_line);686 679 cb(udata, 0, row, &cells[line_offset], history->cols); 687 680 … … 692 685 693 686 if (count > 0 && line_offset < line.len) { 694 //printf("Iterating last row %d of line %zu\n", row, current_line);695 687 /* Callback for the last (incomplete) row. */ 696 688 … … 701 693 702 694 /* Callbacks for the blank section in the last row. */ 703 //printf("Updating %zu blank cells.\n", history->cols - col);704 695 _update_blank(col, row, history->cols - col, cb, udata); 705 696 -
uspace/lib/termui/src/termui.c
r9aa51406 r88739997 510 510 511 511 for (int row = first_row; row < first_row + rows; row++) { 512 //printf("Iterating active screen row %d as viewport row %d\n", row-sb_rows, row);513 512 termui->update_cb(termui->update_udata, 0, row, &_screen_cell(termui, 0, row - sb_rows), termui->cols); 514 513 } … … 522 521 termui_t *termui_create(int cols, int rows, size_t history_lines) 523 522 { 524 printf("termui_create(%d, %d, %zu)\n", cols, rows, history_lines);525 526 523 /* Prevent numerical overflows. */ 527 524 if (cols < 2 || rows < 1 || INT_MAX / cols < rows) … … 575 572 void termui_history_scroll(termui_t *termui, int delta) 576 573 { 577 //printf("Termui scroll %d\n", delta);578 574 int scrolled = _history_scroll(&termui->history, delta); 579 575
Note:
See TracChangeset
for help on using the changeset viewer.