CONSOLELINE
struct · console · 36 bytes
- Meaning
- Names the console line record: links, text, length, capacity, cursor, floor, class and string
- Confidence
- verified, proof one
- Finding
- console/screen#line-records
Finding: Line records in console: screen
A console line is a 0x24-byte record allocated zero-filled under the tag CONSOLELINE: next link
+0, previous link +4, text +8, length +0xc, capacity +0x10, cursor +0x14, floor +0x18,
colour class +0x1c and string handle +0x20. The lines are one intrusive list with the newest at the
head (0xc4e9ac) and a count (0xc4ec24); past 0x100 lines the oldest is freed. The input line is the
head while its cursor is nonzero. 0x63baa0 makes a new input line whenever the head's cursor is 0:
text > , floor = cursor = length 2, class 1, capacity 0x10, and the view anchor 0xc4e9b4 set to it.
The derivation is in the doc.
Fields 9
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void * | m_prevLink | Holds the previous link of the line list | verified, proof one | console/screen#line-records |
0x0004 | 4 | CONSOLELINE * | m_next | Holds the next line, older than this one | verified, proof one | console/screen#line-records |
0x0008 | 4 | char * | m_text | Holds the text buffer | verified, proof one | console/screen#line-records |
0x000c | 4 | uint32_t | m_length | Holds the number of bytes in the text | verified, proof one | console/screen#line-records |
0x0010 | 4 | uint32_t | m_capacity | Holds the size of the text buffer | verified, proof one | console/screen#line-records |
0x0014 | 4 | uint32_t | m_cursor | Holds the cursor index, nonzero only for the input line | verified, proof one | console/screen#line-records |
0x0018 | 4 | uint32_t | m_floor | Holds the first index the cursor may edit | verified, proof one | console/screen#line-records |
0x001c | 4 | uint32_t | m_colourClass | Holds the colour class of the line | verified, proof one | console/screen#line-records |
0x0020 | 4 | uint32_t | m_string | Holds the handle of the drawn string | verified, proof one | console/screen#line-records |
Globals of this type
0xc4e9b4s_viewAnchor