| cmd_prompt | Function (ROM Call 0x371)

AMS 1.01 or higher | bascmd.h

void cmd_prompt (CESI VarList);

Executes TI-Basic 'Prompt' command.

cmd_prompt assumes that VarList points to a variable tag. It displays the current contents of the TI-Basic Program I/O Screen window, then displays a prompt on the Program I/O Screen for the variable pointed to by VarList, using its own name as the prompt (with a question mark appended after the name). Then, it waits for a user response, and stores the entered expression in the corresponding variable. This task is repeated for all entries on the expression stack below VarList, until END_TAG is reached.

Uses: HeapFree, ER_catch, ER_success, ER_throwVar, ERD_dialog, next_expression_index, NG_tokenize, Parse1DExpr, push_quantum, top_estack, EV_captureEvents, EV_eventLoop, EV_paintWindows, EV_setFKeyState, EV_startApp, ScrToHome, ScrToWin, strcat, strlen, TE_close, TE_focus, TE_isBlank, TE_open, TE_reopen, TE_select, TE_shrinkWrap, TE_unfocus, EV_currentApp, EV_quit, NG_control, push_simplify, VarStore, WinActivate, WinBackupToScr, WinChar, WinClr, WinDeactivate, WinFill, WinHide, WinScrollV, WinStrXY, WinWidth, _ds16u16, _du32u32, ROM Call 0x471, ROM Call 0x5CA