/*  to NCSA 2.2TN users. */
/*  You do not need to have a map3270 file, but if you wish to tailor the */
/*  key strokes, you can alter this file and run it through a C preprocessor */
/*  such as tncpp.exe (provided) */
/*  Examine the file 3270keys.h to see which keys are defined */
/*  and set the values below accordingly. */
/*  in your config.tel file you must set the */
/*                map3270="c:\etc\map3270" */
/*  variable to point to the location of your map file */
/* */
/* To see which keys are valid, examine the file 3270keys.h  */
/*  */
/*  */
/*  Copyright (c) 1987 Regents of the University of California. */
/*  All rights reserved.  The Berkeley software License Agreement */
/*  specifies the terms and conditions for redistribution. */
/*  */
/* 	@(#)map3270	1.1 (Berkeley) 11/20/87 */
/*  */
/*  */
/*  /etc/map3270 (/usr/new/etc/map3270 before migration) */
/*  mail corrections and additions to "termcap" */
/*  */
/*  this file contains mappings between characters entered from the keyboard, */
/*  and 3270 keys, for use by programs (like tn3270) doing 3270 emulation */
/*  from unix. */
/*  */
/*  inside the single quotes, a caret ("^") introduces a control character */
/*  sequence (rub out = ^?, by the way).  also inside the single quotes, */
/*  a backslash ('\') introduces an escaped character.  Also, \n, \r, \t, */
/*  are all as in c, and \E is another way of representing escape. */
/*  */
/* 	NOTE that while we are defining lots of function, much of that */
/*  function (ie: local editing keys) may not yet be available from */
/*  tn3270. */

#include "3270keys.h"

ncsa {
/*  */
/*  ncsa keyboard map, might not work */

    centsign = '\Ec' | '\EC' | ALTS ;		        /*  CentSign for input ALT-S */
    enter = '^m';					/*  <--' */
    clear = '^z' | CTRLHOME ;				/*  Ctrl-Home */

    nl    = '^j';       				/*  keypad End SHIFT_ENTER */
    tab   = '^i';					/*  --->| */
    btab  = '^b'  | REVTAB ;     			/*  |<--- (shift) */
    left  = '^h'  | CURLF | '\x7f' ;			/*  keypad Left, BS or DEL */
    right = '^l'  | CURRT;				/*  keypad Right */
    up    = '^k'  | CURUP;				/*  keypad Up */
    down  = '^n'  | CURDN;				/*  keypad Down */
    home  = '^^'  | HOME;     			/*  keypad Home */
    dp    = '^u';
    fm    = '^y';

    delete = '^d' | DELETE;				/*  keypad Del */
    eeof = '^e'  |  ENDKEY;				/*  keypad End */
    einp = '^w' | CTRLEND ;                              /*  ctrl-end */
    insrt = '\E ' | INSERT;				/*  keypad Ins */

    /*  pf keys IBM PC/XT/AT */
    /*  F1 - F10, sF1 - sF10, Ctrl-F1 - Ctrl-F4 */
    pfk1 =F1; pfk2 = F2; pfk3 = F3; pfk4 = F4; pfk5 = F5; /*  F1-F5 */
    pfk6 = F6; pfk7 = F7; pfk8 = F8 ; pfk9 = F9 ; pfk10 = F10; /*  F6-F10 */
    pfk11 = SF1 ; pfk12 = SF2 ; pfk13 = SF3 ; pfk14 = SF4 ; pfk15=SF5;  /* sF1-sF5 */
    pfk16 = SF6 ; pfk17 = SF7 ; pfk18 = SF8 ; pfk19 = SF9 ; pfk20=SF10; /* sF6-sF10 */
    pfk21 = CF1 ; pfk22 = CF2 ; pfk23 = CF3 ; pfk24 = CF4 ; /* ^F1-^F4 */

    /*  program attention keys */
    pa1 = '^p1' | AF1 | ALT1 | PGUP;		/*  Alt-F1 or ALT-1 or PGUP */
    pa2 = '^p2' | AF2 | ALT2 | PGDN;		/*  Alt-F2 or ALT-2 or PGDN */
    pa3 = '^p3' | AF3 | ALT3 | CTRLPGDN;		/*  Alt-F3 or ALT-3 or Ctrl-PGDN */
    treq = '^pr' | '^pR' | AF5 | '^t';		/*  Alt-F5 or ctrl-T or ^pr or ^pR */

    /*  other keys */
    cursel = '\E.';
    werase = '^\';     # /* if you get an error from tncpp on this line, ignore it */
    ferase = '^_';
    right2 = CTRLCURRT;					/*  Ctrl-Right */
    left2 = CTRLCURLF;				/*  Ctrl-Left */
    wordend = CTRLPGUP;					/*  Ctrl-PgUp */
    fieldend = '^fe';					/*  ^FE */

    /*  local control keys */
    reset  = '^r' ;
    master_reset = '^g';
    flinp  = '^x';
    reshow = '^v';
    escape = '^c';					/*  to command prompt */
    disc   = '^pS1D';					/*  disconnect (suspend)? */
    sync   = '^pS1S';					/*  in sync with user? */

    /*  local editing keys */
    settab = '\E;';
    deltab = '\E\'';
    clrtab = '\E:' | '\E+';
    setmrg = '\E(';
    sethom = '\E!';
    coltab = '\Ei' | '\EI';
    colbak = '\Eb' | '\EB';				/*  on S/1 \EB is down */
    indent = '\El' | '\EL';
    undent = '\Eh' | '\EH';				/*  on S/1 \EH is Home */

} /*  end of ncsa telnet keys */

