Escape() action

From The x3270 Wiki

The Escape() action switches c3270 or wc3270 to the c3270> prompt and optionally performs an action.

Parameters

If no parameters are given, simply breaks to the prompt.

One or two optional parameters can be specified. The last parameter is an action name and optional arguments, which will be run before the prompt is displayed. Note that the entire action name and arguments are in one parameter, not spread across multiple parameters.

The action parameter can be preceded by the -nopromptafter option, which specifies that no prompt will be displayed after the action is run -- that is, the host session will be resumed immediately after. New in 4.2

Note that if an action parameter specified, there is no feedback about whether the action succeeded or not. Escape() will succeed as long as its arguments appear to be correct and the emulator is not already at the c3270> prompt.

Examples

Break to the c3270> prompt.

Escape()

Break to the c3270> prompt and run the Transfer() action.

Escape("Transfer()")

Break to the c3270> prompt and run an interactive script, then return to the host session. New in 4.2

Escape(-nopromptafter,"Script(-interactive,python3,myscript.py)")

Default keymap

Mode x3270 c3270 wc3270 wx3270
3270 Escape
Ctrl-]
Ctrl-a + e
Escape
Ctrl-]
NVT Escape
Ctrl-]
Ctrl-a + e
Escape
Ctrl-]

how to read keymap tables