Skip to main content

Press key

Press Enter, Tab, Clear, a PF or PA key, and wait for the host to answer.

Command in the Terminal emulator toolkit · id ooa.terminal/send_key · 7 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
KeyStringYesEnter, Tab, BackTab, Clear, Reset, EraseEOF, EraseInput, Home, Newline, Up, Down, Left, Right, BackSpace, Delete, Insert, FieldEnd, Dup, FieldMark, Attn, SysReq, PF1 to PF24 or PA1 to PA3. 5250 (IBM i) hosts also take FieldExit, Help, Print, PageUp and PageDown (Roll Down and Roll Up), but not PA keys or FieldMark. VT (SSH) hosts also take Escape, End, PageUp, PageDown and Ctrl+letter, e.g. Ctrl+C.
SessionStringNoterminalSession name.
Wait for hostBooleanNotrueAfter keys that go to the host (Enter, PF, PA, Clear...), wait until it unlocks the keyboard.
Timeout (seconds)NumberNo30Seconds to wait for the host to unlock the keyboard after the key.
RepeatNumberNo1How many times to press the key, e.g. 3 x Tab.
Delay after (milliseconds)NumberNo0Extra pause after the key, in milliseconds.
Wait for textStringNoText that must appear on the screen after the key (waits up to timeout_seconds); no check when empty.