Avaya Escape Codes

I found myself in a snag this morning and these helped immensely. It was quite a task finding these online, so I thought I had better repost them. I found a link to a site from a forum that was supposed to have these listed, but the site no longer existed. I was able to retrieve the content, however, with the help of the Wayback Machine. The original site was http://www.jaymzworld.com/pages/sat.shtml (wayback machine link).



In the latest release of Avaya Communication Manager the following terminal types are supported: att513 (default), att4410, att4425, 715, W2KTT (windows 2000 terminal), SUNT (SUN terminal), NTT (windows NT terminal), and VT220. It also supports the normally noninteractive ossi interface which is used by the Avaya Site Administration application for batch changes to the system.


Command F Key 513 4410/4425 vt220 w2ktt sunt
Cancel F1 ESC Ow ESC OP ESC [3~ ESC x ESC [11~
Refresh F2 ESC Na ESC OQ ESC [34~ ESC r ESC [12~
Enter F3 ESC SB ESC OR ESC [29~ ESC e ESC [13~
Clear Field F4 ESC [J ESC OS ESC [33~ ESC c ESC [14~
Help F5 ESC Om ESC OT ESC [28~ ESC h ESC [15~
Go To Page F6 ESC Or ESC dp
Next Page F7 ESC [U ESC OV ESC [6~ ESC n ESC [18~
Previous Page F8 ESC [V ESC OW ESC [5~ ESC p ESC [19~


Terminal emulation programs

All configurations below are for att4410 / att4425 emulation.

Microsoft Windows® based applications


SSH Secure Shell for Windows workstations is a commercial product that can be used to provide vt100 type emulation to a host over a secure connection. Its configuration file is called keymap22.map. Changes to this file can be globalized by altering the copy located at C:\Program Files\SSH Communications Security\SSH Secure Shell, or can be done on a per user basis by editing the user copy at C:\Documents and Settings\username\Application Data\SSH. The following entries should be edited:

 	TH_F1 = "\033OP"
 	TH_F2 = "\033OQ"
 	TH_F3 = "\033OR"
 	TH_F4 = "\033OS"
 	TH_F5 = "\033OT"
 	TH_F6 = "\033Or"
 	TH_F7 = "\033OV"
 	TH_F8 = "\033OW"

Tera Term

Tera Term is a free software terminal emulator for Windows. It can act as a replacement for HyperTerminal and can use telnet and ssh for transport. The default keyboard setup stored in the file KEYBOARD.CNF is almost compatible with VT terminal keyboard. You can modify key assignments by editing the file. See the included documentation keycode.txt for detailed instructions on changing mappings.


[VT function keys]
;F6 key
;F7 key
;F8 key
[VT function keys]
;F6 key
;F7 key
;F8 key

[User keys]

X Window System emulators


The xterm program is the standard terminal emulator for the X Window System. Changes to xterm’s keyboard mapping are accomplished on a per user basis in the file ~/.Xdefaults, located in the user’s home directory. For SunOS users, the standard terminal is normally dtterm, which can also be altered using the ~/.Xdefaults file.

Note: Some distributions, such as Fedora, no longer use settings in the .Xdefaults file. Rather, changes should go into the user’s .Xresources file.

Settings for xterm:

*VT100.BctLabel1: :    F1       F2       F3      F4        F5       F6       F7 F8        F9      SF1      SF2      SF3
*VT100.BctLabel2: :  PrevPg   PrvFld   NxtFld   NxtPg    Submit   BacTab Cancel   Help     NxtFrm   Refrsh   ClrFld   Update
*VT100.Translations: #override\
 ~Shift <Key>F1:        string("\033OP") \n\
 ~Shift <Key>F2:        string("\033OQ") \n\
 ~Shift <Key>F3:        string("\033OR") \n\
 ~Shift <Key>F4:        string("\033OS") \n\
 ~Shift <Key>F5:        string("\033OT") \n\
 ~Shift <Key>F6:        string("\033Or") \n\
 ~Shift <Key>F7:        string("\033OV") \n\
 ~Shift <Key>F8:        string("\033OW") \n\

Settings for dtterm. Note that F9 is substituted for F1.

*dtTerm*Translations: #override\
~Shift <Key>F9:         string("\033OP") \n\
 ~Shift <Key>F2:        string("\033OQ") \n\
 ~Shift <Key>F3:        string("\033OR") \n\
 ~Shift <Key>F4:        string("\033OS") \n\
 ~Shift <Key>F5:        string("\033OT") \n\
 ~Shift <Key>F6:        string("\033Or") \n\
 ~Shift <Key>F7:        string("\033OV") \n\
 ~Shift <Key>F8:        string("\033OW") \n\ 
 ~Shift <Key>Help:      string("\033OP") \n

For more info, see the page covering the .Xdefaults file.


Eterm is a vt102 terminal emulator intended as a replacement for xterm. Its’ modification file is located in the user’s home directory at .Eterm/user.cfg.

begin actions
        bind 0xffbe to echo '\033OP'
        bind 0xffbf to echo '\033OQ'
        bind 0xffc0 to echo '\033OR'
        bind 0xffc1 to echo '\033OS'
        bind 0xffc2 to echo '\033OT'
        bind 0xffc3 to echo '\033Or'
        bind 0xffc4 to echo '\033OV'
        bind 0xffc5 to echo '\033OW'
end actions

Comments (4)

  1. 6:15 pm, February 17, 2014Wayne  / Reply

    Thank you. This has helped me out too

  2. 6:48 pm, February 17, 2014Wayne  / Reply

    Thank you. This has helped me out too.

    I needed the NEXT key to be pressed but in a simple C# telnet client (513). I used :
    prompt = Char.ToString((char)0x1B) + “[U”;
    to simulate F7/NEXT being pressed.

    • 7:01 pm, August 19, 2014Brett  / Reply

      Thank you!!!! Wayne

  3. 1:46 pm, March 18, 2016Heron  / Reply

    I am trying to use plink (putty command line application) to log into my avaya:
    plink.exe -ssh -l myloginname -pw mypassword -P 5022
    But I cannot figure out how to change the name and them “press” F3 key.

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Pingbacks (0)

› No pingbacks yet.