Expand description
What has the keyboard: the stack (the ROM’s top-level outer loop), an open command line, a halted program, or an application’s own loop (an input form, a choose box, a message box, the graphics screen, the 48’s EquationWriter, the interactive stack, an object edited on the command line, the MatrixWriter), read from RAM without pressing a key; the display only where RAM gave no sign (wiki: hardware/ui-state).
The signals, observed on the 48SX (ROM J), 48GX (ROM R) and 49G (ROM 2.10 and 1.19-6) while the ROM waits for a key:
- The RPL return stack (between the saved
HeapStartand the saved B): its bottom entries are the system outer loop’s own frame; while the stack has the keyboard, the sixth entry from the top (under the key wait’s four entries and the calling loop’s own return into it) is that same outer-loop frame. Any other loop (a parameterized outer loop: forms, choose and message boxes, the graphics screen,INPUT,WAIT, the interactive stack; the 48’s equation writer) puts its own frame there. A halted program leaves its frames on the return stack with a new outer loop above them, so each halted program adds one more copy of the outer-loop frame. - The temporary environments (RPLMAN 13.1): input forms bind named
temporaries (
IFon the 48GX,IfMenu,CurrentField, … on the 49G), the 49G’s choose box bindsNbElmand others. The 48SX’s and 48GX’s EquationWriter bindsploc,FontGaugeand others: newest in entry mode, under one environment binding onlySavedUIin selection mode, underSavedUIandSAVEDDEPTH EXITFCN EnvOK(48SX:EXITFCN EnvOK) in scrolling mode. The 49G’s equation writer binds only unnamed temporaries and edits on the command line: it reads as INPUT does. - The types of the objects bound to unnamed temporaries (observed on
48SX J, 48GX R, 49G 2.10 and 1.19-6):
- The interactive stack binds a command and three system binaries
(48, under
SavedUI), or eight objects: a system binary, any, a command, a system binary, a command, a system binary, a string, a program (49G). - An object edited on the command line (▼, EDIT, VISIT, the
interactive stack’s EDIT, the 49G’s TOOL EDIT) binds a command, a
system binary, a command and a string, as
INPUTdoes; the environment under it (under itsSavedUIon the 48) binds the edited object alone. UnderINPUTthere is a named one, a system binary (its options) or the stack’s own (a command). - The 48’s MatrixWriter binds 22: a system binary, any, a command, a
system binary, then others, under
SavedUI; the 49G’s names_IDXand_TAB2.
- The interactive stack binds a command and three system binaries
(48, under
- The display: the stack display’s GROB pointer equals the PICT pointer while the graphics screen shows.
- The 48GX’s choose and message boxes bind only unnamed temporaries, so they are told apart on the display: a framed box with a two-dot shadow, a choose box with a dark (inverted) row inside it.
Structs§
- Environment
- One temporary environment’s bindings.
- Return
Stack - The return stack as the ROM left it.
- Screen
- The
uiStateprotocol answer. - Screen
Layout - Where a model’s ROM keeps what the screen state is read from (wiki:
hardware/ui-state). The
*_ptrfields hold 5-nibble pointers.
Enums§
- Kind
- What has the keyboard.
- Source
- Where a
Screen::kindcame from.
Functions§
- environments
- The temporary environments, newest first.
- framed_
box - A framed box with a two-dot shadow on the display (the 48GX’s and the
49G’s message and choose boxes):
Some(true)when a row inside it is dark (a choose box’s highlighted item or title rule),Some(false)without,Nonewhen there is no such box. - innermost_
names - The names of the temporaries bound in the newest environments, down to
and including the first that binds
SavedUI(the parameterized outer loop’s saved state: what the innermost loop bound); only the newest environment when none does. Names lose a leading'. - read
- Read the screen state through the layouts, with
pixelsthe display for the boxes RAM does not name. - screen
- The screen state of
machine(48SX, 48GX, 49G).