ZOC Online Help Topic:

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

  • Control Codes
  • Placeholder 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 of mapping them to a button or, for example in a case whwere 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    
^? DEL-character (dec 127 or hex 7Fh)    
^! Send a modem break signal or equivalent    
125 ms pause between the previous and next character    
^(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. ZOC8.08.7-WIN10

 
← Back to APPENDIX