Changeset a4301f1 in mainline for uspace/lib/termui/src
- Timestamp:
- 2025-11-09T16:28:13Z (3 days ago)
- Branches:
- master
- Children:
- a7f9409, b8498c3
- Parents:
- 9fd74d5
- Location:
- uspace/lib/termui/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/termui/src/history.c
r9fd74d5 ra4301f1 300 300 301 301 if (viewport_inactive) { 302 /* Ensure consistent state so asserts don't trigger inside _evict_oldest_line(). */303 history->viewport_top = lines->tail;302 /* Ensure consistent state so asserts don't trigger inside _evict_oldest_line(). */ 303 history->viewport_top = lines->tail; 304 304 } 305 305 -
uspace/lib/termui/src/history.h
r9fd74d5 ra4301f1 66 66 }; 67 67 68 /* History consists of two circular buffers. 68 /* 69 * History consists of two circular buffers. 69 70 * The cell buffer is a linear array of character cells. 70 71 * The line buffer contains offsets into the cell buffer, and segments it into logical lines. 71 72 * Both of these buffers have a maximum size, so history is limited both by maximum number 72 * of characters, and maximum number of lines. */ 73 * of characters, and maximum number of lines. 74 */ 73 75 struct history { 74 76 size_t viewport_top;
Note:
See TracChangeset
for help on using the changeset viewer.
