| cmd_input | Function (ROM Call 0x356)

AMS 1.01 or higher | bascmd.h

void cmd_input (CESI PromptAndVar);

Executes TI-Basic 'Input' command.

If PromptAndVar points to END_TAG, cmd_input pauses the program, performs cmd_dispg, and lets the user update the system coordinates "xc" and "yc" (as well as "rc" and "theta_c" for polar coordinate mode) by positioning the graph cursor.
If PromptAndVar points to a string item or to a variable tag, cmd_input works exactly like cmd_inputstr, but it treats the user response as an expression instead of a string (cmd_inputstr always stores the response as a string).

Uses: ER_catch, ER_success, ER_throwVar, ERD_dialog, next_expression_index, NG_tokenize, push_quantum, top_estack, EV_captureEvents, EV_eventLoop, EV_paintWindows, EV_setFKeyState, EV_startApp, ScrToHome, ScrToWin, 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 0x455, ROM Call 0x471, ROM Call 0x5CA