TFrame().inputKeys(logoff{ENTER});
At playback time, Extension for Terminal-based Applications waits for the TFrame to be in the ready state before it sends the keystrokes.
The script for typing keystrokes before the synchronization algorithm for the terminal determines whether the presentation space is loaded when recording the script is as follows:TFrame(ANY, UNINITIALIZED).inputKeys(logoff{ENTER});
This
shows that the TFrame object was not initialized and not in the ready state
when you started typing the command. At playback time, those keystrokes are
sent as soon as the script reaches that line, regardless of the state of the
terminal. //Remove "(ANY,UNINITIALIZED)" is any
//TFrame(ANY,UNINITIALIZED).inputKeys(logoff{ENTER});
TFrame().inputKeys(logoff{ENTER});