benilla-re systems structs docs

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

offsetsizetypenamemeaningconfidencefinding
0x00004void *m_prevLinkHolds the previous link of the line listverified, proof oneconsole/screen#line-records
0x00044CONSOLELINE *m_nextHolds the next line, older than this oneverified, proof oneconsole/screen#line-records
0x00084char *m_textHolds the text bufferverified, proof oneconsole/screen#line-records
0x000c4uint32_tm_lengthHolds the number of bytes in the textverified, proof oneconsole/screen#line-records
0x00104uint32_tm_capacityHolds the size of the text bufferverified, proof oneconsole/screen#line-records
0x00144uint32_tm_cursorHolds the cursor index, nonzero only for the input lineverified, proof oneconsole/screen#line-records
0x00184uint32_tm_floorHolds the first index the cursor may editverified, proof oneconsole/screen#line-records
0x001c4uint32_tm_colourClassHolds the colour class of the lineverified, proof oneconsole/screen#line-records
0x00204uint32_tm_stringHolds the handle of the drawn stringverified, proof oneconsole/screen#line-records

Globals of this type