Home Page
        Orders     Downloads     Support     Contact     Deutsch
ZOC Terminal is a professional SSH Client and Terminal Emulator for Windows and macOS.
ZOC Online Help Topic:

APPENDIX → Special Codes (Ctrl-Characters, Placeholder- and Action Codes)

  • Control Codes
  • Placeholder Codes
  • Action Codes

Sometimes it is necessary to send characters that are not available from the keyboard or that cannot be entered into a field because the operating system uses it to move the cursor (like the ESC or Tab or the Enter key). The list below shows what control codes to enter in an action-field (e.g. ZOC^M), in order to perform the equivalent such special key (e.g. to send ZOC<ENTER>).

If need to send those codes from the terminal window instead, e.g. if you need to send ^] to wake up a Cisco device, please see the list of key equivalents for control codes in sending of control codes.

ZOC also offers special placeholder codes which allows you define some filenames (e.g. for Logfiles) in a way that they can conain date and time values.

 

 

Control Codes

The codes listed here can be added to actions in order to send equivalents of keys that can not be entered into dialog fields otherwise (e.g. when entering text to remap keys, etc.). For example, in order to remap a F-key so that it will send the text exit followed by an Enter key, you need to specify the text to send as exit^M.

 

Control Code Description Emulation Key
Equivalent
TN3270 Key
Equivalent
^M Carriage-Return (CD, hex 0D) Enter Newline
^[ Escape
\E
\033
Esc  
^H Backspace (hex 08) Backspace Backspace
^I Tabulation (hex 09) Tab Tab
^J Line-Feed (LF, hex 0A)   Newline
^Z Suspend process (hex 1A) Ctrl+Z Transmit/Send Data
Other ^A … ^Z Combination with Ctrl-key Ctrl+A … Ctrl+Z  
^~ Ctrl+^ (dec 30)    
^[[ DEC Control Squenze Introducer CSI    
^^ ^ character    
^! Send a modem break signal    
^(xx) Any character with code of hex xx
e.g. ^(7F) for DEL
   

 

.  

Placeholder Codes

The table below lists place holders that can be used in some ZOC fields to insert date, time or connection related values. They can be used in all places that support normal control codes and also in Logfile names (Options→Session Profile→Logging).

 

Placeholder Code Replacement Value
^& Replaced by the password from the host directory entry that is currently online (for safety reasons this works only once per session).
^% Replaced by the username from the host directory entry that is currently online
^+ Replaced by the name of the remote host online
^1 Replaced by current day of month
^2 Replaced by current month
^3 Replaced by current year
^4 Replaced by current hour
^5 Replaced by current minute
^6 Replaced by current second
^7 Replaced by local computer name
^8 The instance number of the currently open ZOC window If the window has multiple tabs, a counter for the tabs will also be added. This code is mostly used with log filenames to prevent multiple instances from using the same file.
^9 ZOC version and operating system, e.g. ZOC5.00-XP
^! Send a serial break signal

 

Action Codes

The table below lists place holders that can be used in ZOC action fields (e.g. Session Profile→User Buttons, Session Profile→Auto-Action or Options-menu→Keyboard Profiles) to make them invoke actions like starting REXX scripts or connecting to hosts.

All fields that can accept power codes have an Assist button near them, which starts the interactive assistant to generate these codes.

 

Code Explanation
~ Delay of 1/3 second (only available in modem strings)
^# Replaced with the phone number (only available in modem dial strings)
^! Send a modem break signal
^RUN= Run the REXX file that is given after the equal sign, e.g. ^RUN=myscript.zrx
^CALL= Call a host from the host directory (or multiple hosts separated by vertical bars), which are listed after the equal sign (e.g. ^CALL=ZOC InfoBBS|Big Blue/2)
^CONNECT= The parameter format is <communication-method>!<destination> to connect to a given destination using the given connection method (connection type names as in Options→Session Profile→Connection Type).

This function differs from ^CALL= in that it does not require a host directory entry.

If the type is SSH (Secure Shell) you can supply username and password with the destination: <username>:<password>@<host>. For Rlogin connections you can use <username>@<host>

Examples: ^CONNECT=TELNET!hogwarts.edu
^CONNECT=SSH!harry:alohomora@secure.hogwarts.edu

^KEY=n Simulates a single key that is specific to an emulation (e.g. ^KEY=Down, see Key Names Appendix).
^MENU= Name of a ZOC menu entry. Some entries (like Edit REXX Script) accept file names which can be supplied after a colon, e.g. ^MENU=Edit REXX Script:test.zrx
^PLAYSOUND= Play a WAV-audio file (^PLAYSOUND=C:\SOUNDS\Chime.wav). The file must be a .WAV PCM file (.mp3 or similar formats are not supported)
^SHELL= Runs a Windows command (e.g. ^SHELL=COPY NEW.DATA SAVE.DATA) from a F-Key, Custom Button or AutoReply. To start more than one command, separate them by an & (e.g. ^SHELL=cd \tmp & del *.tmp).
^EXEC= Starts DOS or Windows command (e.g. ^EXEC=NOTEPAD.EXE). Unlike the Shell command, the program is invoked directly (without the command processor) which means that no command arguments can be supplied.

 
← Back to APPENDIX

 

Downloads
Orders
Contact
Support
Terms of Use
Privacy Policy
pixel