.MCall .Module .Module KEDDEF RELEASE=V02 VERSION=22 COMMENT=,IDENT=NO,AUDIT=NO ; Copyright (c) 1998 by Mentec, Inc., Nashua, NH. ; All rights reserved ; ; This software is furnished under a license for use only on a ; single computer system and may be copied only with the ; inclusion of the above copyright notice. This software, or ; any other copies thereof, may not be provided or otherwise ; made available to any other person except for use on such ; system and to one who agrees to these license terms. Title ; to and ownership of the software shall at all times remain ; in Mentec, Inc. ; ; The information in this document is subject to change without ; notice and should not be construed as a commitment by Digital ; Equipment Corporation, or Mentec, Inc. ; ; Digital and Mentec assume no responsibility for the use or ; reliability of its software on equipment which is not supplied ; by Digital or Mentec, and listed in the Software Product ; Description. .Enable LC ; ;MODULE: KEDDEF ; ;ABSTRACT: ; ; This module contains default options which may be modified by SIPP ; or other binary patching programs to alter the default actions of ; KED (and it's cousins). ; .IIf NDF Virt$ Virt$=0 .IIf NDF Rsts$ Rsts$=0 .IIf NDF VT10$0 VT10$0=1 .MCall PSect ; from KedMac.MLB .SbTtl Define default values and global addresses for these PSect KEDDEF ..MaxM::.Word 177776 ;~d~ default max memory to ask for ..EExt::.Rad50 "MAC" ;~d~ default input/backup extension ..IExt::.Rad50 "LST" ;~d~ default /Inspect extension ;..SwtA::.Byte 'A ;~d~ letter value of allocate switch (/A) ;..SwtC::.Byte 'C ;~d~ letter value of create switch (/C) ;..SwtI::.Byte 'I ;~d~ letter value of Inspect switch (/I) ;..SwtN::.Byte 'N ;~d~ letter value of no-init-file switch (/N) ..Yes:: .Byte 'Y ;~d~ uppercase first letter of "YES" ..LcFF::.Byte 200 ;~d~ impossible value for "FF" for LOCAL ; command search boundary. Patch to ; "FF" for old functionality ..MacS::.Word 512. ;~d~ Bytes in shared macro buffer ..MacN::.Word 8. ;~d~ Max number of definitions in shared mac buf ..JDev::.Rad50 " " ;~d~if non-zero (non-blank) journal output device .SbTtl Names for control (C0) characters NUL ==: 000 ; Null BEL ==: 007 ; Bell character BS ==: 010 ; BackSpace HT ==: 011 ; Horizontal Tab LF ==: 012 ; LineFeed FF ==: 014 ; FormFeed CR ==: 015 ; CarriageReturn .If NE Rsts$ SO ==: 216 SI ==: 217 ESC ==: 233 ; Escape character .IfF; NE Rsts$ SO ==: 016 SI ==: 017 ESC ==: 033 ; Escape character .EndC; NE Rsts$ UCase ==: 040 ; Bit to clear to force uppercase SPC ==: 040 ; Space character DEL ==: 177 ; Delete character NoCrLf ==: 200 ; end .Print string for NO CR LF Ctrl.C ==: 'C-100 ; Control/C Ctrl.R ==: 'R-100 ; Control/R Ctrl.U ==: 'U-100 ; Control/U Ctrl.W ==: 'W-100 ; Control/W Ctrl.Z ==: 'Z-100 ; Control/Z G.Ctrl ==: '^ ; character used to "flag" control char displays C.1Quot ==: '' ; Ascii single quote C.2Quot ==: '" ; Ascii double quote C.Zero ==: '0 ; Ascii numeral 0 C.Nine ==: '9 ; Ascii numeral 9 C.UC.A ==: 'A ; uppercase A C.UC.Z ==: 'Z ; uppercase Z C.LC.a ==: 'a ; lowercase a C.LC.z ==: 'z ; lowercase z .SbTtl Define names for Escape sequence elements .SbTtl . For VT52s AO.Key ==: '? ; VT52 function key sequence AO.EGf ==: 'F ; VT52 enter graphics mode AO.XGf ==: 'G ; VT52 exit graphics mode AO.Hom ==: 'H ; VT52 Home cursor AO.RLF ==: 'I ; VT52 reverse line feed AO.ED ==: 'J ; VT52 erase screen AO.EL ==: 'K ; VT52 erase line AO.Rev ==: 'T ; VT62 SGR A.REV AO.Nor ==: 'U ; VT62 SGR A.NORM AO.DCA ==: 'Y ; <37+line><37+column> VT52 cursor addressing AO.XHS ==: '\ ; VT52 exit screen hold mode .SbTtl . DEC private AD.LB ==: '# ; ... private 3 char sequences AD.SWL==: '5 ; single width line AD.SC ==: '7 ; Save Cursor AD.RC ==: '8 ; Restore Cursor AD.ANM ==: '< ; Set ANSI mode (from VT52 mode) AD.KPA ==: '= ; Set KeyPad Application mode AD.KPN ==: '> ; Set KeyPad Numeric Mode AD.CCK ==: '1 ; Cursor Key mode AD.Old ==: '2 ; VT52 mode AD.Col ==: '3 ; Column mode AD.Scn ==: '5 ; Screen mode (light/dark) AD.OM ==: '6 ; Origin mode AD.ARM ==: '8 ; Auto repeat mode AD.STB ==: 'r ; ...... Set Top and Bottom .SbTtl . ANSI sequences A.CSI ==: '[ ; ... Control String Introducer A.Dec ==: '? ; ... Private CSI A.Sep ==: '; ; ... ... Parameter separator A.SCS1 ==: ') ; ... Set G1 character set A.Line==: '0 ; select line drawing set A.CUU ==: 'A ; ... Cursor Up A.CUD ==: 'B ; ... Cursor Down A.CUF ==: 'C ; ... Cursor Forward A.CUB ==: 'D ; ... Cursor Backward A.CUP ==: 'H ; ... ... Cursor Position A.ED ==: 'J ; ... Erase display: cursor to end A.EL ==: 'K ; ... Erase line: cursor to end A.RI ==: 'M ; Reverse index A.SS3 ==: 'O ; Application mode keypad/cursor A.CPR ==: 'R ; ... ... cursor position report A.SM ==: 'h ; ... Set Mode A.RM ==: 'l ; ... Reset Mode A.Rep ==: '4 ; Replace mode A.SGR ==: 'm ; ... Select Graphic Rendition A.Norm==: '0 ; Normal display A.Bold==: '1 ; Bold display A.Undr==: '4 ; Underlined display A.Blnk==: '5 ; Blinking display A.Rev ==: '7 ; Reversed display A.DSR ==: 'n ; ... device status report A.RCPR==: '6 ; request CPR .SbTtl Escape strings generated by keys K.Up ==: A.CUU ; Up arrow key ; for VT52 K.Down ==: A.CUD ; Down arrow key ; for VT52 K.Right ==: A.CUF ; Right arrow key ; for VT52 K.Left ==: A.CUB ; Left arrow key ; for VT52 K.PF1 ==: 'P ; PF1 key ; for VT52 K.PF2 ==: 'Q ; PF2 key ; for VT52 K.PF3 ==: 'R ; PF3 key ; for VT52 K.PF4 ==: 'S ; PF4 key K.Enter ==: 'M ; for application keypad "ENTER" ; for VT52 K.Comma ==: 'l ; for application keypad "," K.Minus ==: 'm ; for application keypad "-" K.Dot ==: 'n ; for application keypad "." ; for VT52 K.0 ==: 'p ; for application keypad "0" ; for VT52 K.1 ==: 'q ; for application keypad "1" ; for VT52 K.2 ==: 'r ; for application keypad "2" ; for VT52 K.3 ==: 's ; for application keypad "3" ; for VT52 K.4 ==: 't ; for application keypad "4" ; for VT52 K.5 ==: 'u ; for application keypad "5" ; for VT52 K.6 ==: 'v ; for application keypad "6" ; for VT52 K.7 ==: 'w ; for application keypad "7" ; for VT52 K.8 ==: 'x ; for application keypad "8" ; for VT52 K.9 ==: 'y ; for application keypad "9" ; for VT52 .SbTtl Names for Line Drawing Set characters G.Diam ==: '` ; Diamond G.CkBd ==: 'a ; Checkerboard G.HT ==: 'b ; H/T G.FF ==: 'c ; F/F G.CR ==: 'd ; C/R G.LF ==: 'e ; L/F G.Dgre ==: 'f ; Degree mark G.PlMi ==: 'g ; +/- G.NL ==: 'h ; N/L G.VT ==: 'i ; V/T G.BR ==: 'j ; Bottom Right corner G.TR ==: 'k ; Top Right corner G.TL ==: 'l ; Top Left corner G.BL ==: 'm ; Bottom Left corner G.X ==: 'n ; Crossing lines G.H1 ==: 'o ; Scan line 1 (top) G.H3 ==: 'p ; Scan line 3 G.H5 ==: 'q ; Scan line 5 G.Hori ==: G.H5 ; Horizontal line G.H7 ==: 'r ; Scan line 7 G.H9 ==: 's ; Scan line 9 (bottom) G.LT ==: 't ; Left T (|-) G.RT ==: 'u ; Right T (-|) G.BT ==: 'v ; Bottom T (_|_) G.TT ==: 'w ; Top T (T) G.Vert ==: 'x ; Vertical line G.LE ==: 'y ; <= G.GE ==: 'z ; >= G.PI ==: '{ ; Pi character G.NE ==: '| ; Not = G.UKLb ==: '} ; UK Pound character G.Dot ==: '~ ; Centered Dot .SbTtl Screen dimensions V.Cols ==: 80. V.Lin80 ==: 24. V.WCols ==: 132. V.Lin132==: 14. .End