# @(#)20	1.1  src/tcpip/etc/3270keys.dtterm, tcp_apps, tcpip720 11/16/95 14:29:45
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# tcpip720 src/tcpip/etc/3270keys.dtterm 1.1 
#  
# Licensed Materials - Property of IBM 
#  
# Restricted Materials of IBM 
#  
# COPYRIGHT International Business Machines Corp. 1995 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
# 
# COMPONENT_NAME: TCPIP 3270keys.dtterm
# 
# FUNCTIONS: 
#
# ORIGINS: 27  38 
#
# (C) COPYRIGHT International Business Machines Corp. 1995
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#       Copyright (c) 1985 by Paul Milazzo - all rights reserved
#
#
#	    NOTICE TO USERS OF THE SOURCE CODE EXAMPLES
#
# INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOURCE CODE
# EXAMPLES, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT
# WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
# LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
# OF THE SOURCE CODE EXAMPLES, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS,
# IS WITH YOU.  SHOULD ANY PART OF THE SOURCE CODE EXAMPLES PROVE
# DEFECTIVE, YOU (AND NOT IBM OR AN AUTHORIZED RISC System/6000* WORKSTATION
# DEALER) ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR
# CORRECTION.
#
#  RISC System/6000 is a trademark of International Business Machines
#   Corporation.
#
#
# 3270 key bindings and color initialization for IBM dtterm 
#
#           some possible 3270 enter keys are:
#                  \n - enter (normal)
#                  ^M - enter (keypad)
#             \e[114q - action
#
#
#       The following may be used in sequence fields:
#           \b - backspace
#           \s - space
#           \t - tab
#           \n - newline
#           \r - return
#
#           \e - esc (\033,0x1b)
#            ^ - mask next character with \037 (e.q. ^M)
#            ~ - set highorder bit on for next character
#
#
#       3270 function   dtterm sequence  dtterm key
#
bind    backspace       "^H"            # Backspace
bind    backtab         "^B"            # c_B
bind    clear           "^Z"            # c_Z
bind    delete          "\e[3\~"        # Delete
bind    down            "\e[B"          # down arrow

#bind    dup             ""             # (Not defined yet)

bind    enter           "^J"            # enter
bind    eraseeof        "^K"            # c_End
bind    eraseinput      "\e[3\~"        # c_Delete

#bind    fieldmark       ""             # (Not defined yet)

bind    home            "\e[H"          # Home
bind    insertmode      "\e[2\~"        # Insert
bind    left            "\e[D"          # left arrow

#bind    pa1             ""         	# (Not defined yet)
#bind    pa2             ""         	# (Not defined yet)
#bind    pa3             ""         	# (Not defined yet)
#bind    penselect       ""             # (Not defined yet)
#bind    reset           ""             # (Not defined yet)

#bind    return          ""             # (Not defined yet)
bind    right           "\e[C"          # right arrow

#bind    sysreq          ""             # (Not defined yet)

bind    tab             "\t"            # Tab
bind    up              "\e[A"          # up arrow
bind    wordnext        "\ef"           # c_right arrow
bind    wordprev        "\eb"           # c_left arrow
bind    attention       "\e[24\~"       # c_f12

bind    pf1             "\e[11\~"       # f1
bind    pf2             "\e[12\~"       # f2
bind    pf3             "\e[13\~"       # f3
bind    pf4             "\e[14\~"       # f4
bind    pf5             "\e[15\~"       # f5
bind    pf6             "\e[17\~"       # f6
bind    pf7             "\e[18\~"       # f7
bind    pf7             "\e[5\~"        # Page Up
bind    pf8             "\e[19\~"       # f8
bind    pf8             "\e[6\~"        # Page Down
bind    pf9             "\e[20\~"       # f9
bind    pf10            "\e[21\~"       # f10
bind    pf11            "\e[23\~"       # f11
bind    pf12            "\e[24\~"       # f12

bind    pf13            "\e[25\~"       # s_f1 
bind    pf14            "\e[26\~"       # s_f2
bind    pf15            "\e[28\~"       # s_f3
bind    pf16            "\e[29\~"       # s_f4
bind    pf17            "\e[31\~"       # s_f5
bind    pf18            "\e[32\~"       # s_f6
bind    pf19            "\e[33\~"       # s_f7
bind    pf20            "\e[34\~"       # s_f8

# bidi support keys (dtterm)
#bind    autopush        ""             # (Not defined yet)
#bind    scrrev          ""             # (Not defined yet)
#bind    endpush         ""             # (Not defined yet)
#bind    push            ""             # (Not defined yet)
#bind    eng_lang        ""             # (Not defined yet)
#bind    nls_lang        ""             # (Not defined yet)
#bind    fldrev          ""             # (Not defined yet)

# start ARABIC support (dtterm)
#bind   autoshape   ""                  # (Not defined yet)
#bind   isolated    ""                  # (Not defined yet)
#bind   initial     ""                  # (Not defined yet)
#bind   middle      ""                  # (Not defined yet)
#bind   final       ""                  # (Not defined yet)
#bind   fieldshape  ""                  # (Not defined yet)
#bind   fieldbase   ""                  # (Not defined yet)
# end ARABIC support


#       Edit the default colors below to the desired colors for
#       your color terminal.
#       Valid colors are :  black, blue, red, green, white, magenta
#                           and cyan
#
#       3270 attribute  display color
bind    low_prot        red              # low intensity protected
bind    low_unprot      green            # low intensity unprotected
bind    high_prot       white            # high intensity protected
bind    high_unprot     cyan             # high intensity unprotected