home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / textinfo / cxl50ngs.arj / CXLAPPN.NMS < prev    next >
Encoding:
Text File  |  1989-04-27  |  15.5 KB  |  312 lines

  1. !short:   AppendixA     ^bText Attribute Identifiers^b
  2.  
  3.     ^bAppendix A - Text Attribute Identifiers^b
  4.  
  5.  
  6.          ^bForeground Colors                   Background Colors^b
  7.  
  8.         ^bIdentifier    Color                  Identifier    Color^b
  9.         ^b----------    -----                  ----------    -----^b
  10.         BLACK       - black                  _BLACK       - black
  11.         BLUE        - blue                   _BLUE        - blue
  12.         GREEN       - green                  _GREEN       - green
  13.         CYAN        - cyan                   _CYAN        - cyan
  14.         RED         - red                    _RED         - red
  15.         MAGENTA     - magenta                _MAGENTA     - magenta
  16.         BROWN       - brown                  _BROWN       - brown
  17.         LGREY       - light grey             _LGREY       - light grey
  18.         DGREY       - dark grey
  19.         LBLUE       - light blue
  20.         LGREEN      - light green
  21.         LCYAN       - light cyan
  22.         LRED        - light red
  23.         LMAGENTA    - light magenta
  24.         YELLOW      - yellow
  25.         WHITE       - white
  26.  
  27.         BLINK       - blinking foreground
  28.  
  29.  
  30.     Example Usage:
  31.  
  32.         BLINK|WHITE|_RED    -   blinking white on red
  33.         YELLOW|_BLUE        -   yellow on blue
  34.         LMAGENTA            -   light magenta on black
  35.         _BLUE               -   black on blue
  36.  
  37. !short:   AppendixB     ^bKeycode Table^b
  38.  
  39.     ^bAppendix B - Keycode Table^b
  40.  
  41.     ^bKey             Norm        Shift       Ctrl        Alt^b
  42.     ^b----            ----        -----       ----        ---^b
  43.     A               1E61        1E41        1E01        1E00
  44.     B               3062        3042        3002        3000
  45.     C               2E63        2E42        2E03        2E00
  46.     D               2064        2044        2004        2000
  47.     E               1265        1245        1205        1200
  48.     F               2166        2146        2106        2100
  49.     G               2267        2247        2207        2200
  50.     H               2368        2348        2308        2300
  51.     I               1769        1749        1709        1700
  52.     J               246A        244A        240A        2400
  53.     K               256B        254B        250B        2500
  54.     L               266C        264C        260C        2600
  55.     M               326D        324D        320D        3200
  56.     N               316E        314E        310E        3100
  57.     O               186F        184F        180F        1800
  58.     P               1970        1950        1910        1900
  59.     Q               1071        1051        1011        1000
  60.     R               1372        1352        1312        1300
  61.     S               1F73        1F53        1F13        1F00
  62.     T               1474        1454        1414        1400
  63.     U               1675        1655        1615        1600
  64.     V               2F76        2F56        2F16        2F00
  65.     W               1177        1157        1117        1100
  66.     X               2D78        2D58        2D18        2D00
  67.     Y               1579        1559        1519        1500
  68.     Z               2C7A        2C5A        2C1A        2C00
  69.     1               0231        0221        N/A         7800
  70.     2               0332        0340        0300        7900
  71.     3               0433        0423        N/A         7A00
  72.     4               0534        0524        N/A         7B00
  73.     5               0635        0625        N/A         7C00
  74.     6               0736        075E        071E        7D00
  75.     7               0837        0826        N/A         7E00
  76.     8               0938        092A        N/A         7F00
  77.     9               0A39        0A28        N/A         8000
  78.     0               0B30        0B29        N/A         8100
  79.     ,               332C        333C        N/A         N/A
  80.     .               342E        343E        N/A         N/A
  81.     /               352F        353F        N/A         N/A
  82.     ;               273B        273A        N/A         N/A
  83.     '               2827        2822        N/A         N/A
  84.     [               1A5B        1A7B        1A1B        N/A
  85.     ]               1B5D        1B7D        1B1D        N/A
  86.     `               2960        297E        N/A         N/A
  87.     -               0C2D        0C5F        0C1F        8200
  88.     =               0D3D        0D2B        N/A         8300
  89.     \               2B5C        2B7C        2B1C        N/A
  90.  
  91.  
  92.  
  93.     ^bKey             Norm        Shift       Ctrl        Alt^b
  94.     ^b----            ----        -----       ----        ---^b
  95.     F1              3B00        5400        5E00        6800
  96.     F2              3C00        5500        5F00        6900
  97.     F3              3D00        5600        6000        6A00
  98.     F4              3E00        5700        6100        6B00
  99.     F5              3F00        5800        6200        6C00
  100.     F6              4000        5900        6300        6D00
  101.     F7              4100        5A00        6400        6E00
  102.     F8              4200        5B00        6500        6F00
  103.     F9              4300        5C00        6600        7000
  104.     F10             4400        5D00        6700        7100
  105.     Enter           1C0D        1C0D        1C0A        N/A
  106.     Ins             5200        5230        N/A         N/A
  107.     Del             5300        532E        N/A         N/A
  108.     Esc             011B        011B        011B        N/A
  109.     Home            4700        4737        7700        N/A
  110.     End             4F00        4F31        7500        N/A
  111.     PgUp            4900        4939        8400        N/A
  112.     PgDn            5100        5133        7600        N/A
  113.     <Tab>           0F09        0F00        N/A         N/A
  114.     <BackSpace>     0E08        0E08        0E7F        N/A
  115.     <LeftArrow>     4B00        4B34        7300        N/A
  116.     <RightArrow>    4D00        4D36        7400        N/A
  117.     <UpArrow>       4800        4838        N/A         N/A
  118.     <DownArrow>     5000        5032        N/A         N/A
  119.     <Keypad 5>      N/A         4C35        N/A         N/A
  120.     <Grey *>        372A        N/A         7200        N/A
  121.     <Grey ->        4A2D        4A2D        N/A         N/A
  122.     <Grey +>        4E2B        4E2B        N/A         N/A
  123.  
  124. !short:   AppendixC     ^bWindow Output Escape Codes^b
  125.  
  126.     ^bAppendix C - Window Output Escape Codes^b
  127.  
  128.  
  129.     ^bEscape Code         Function^b
  130.     ^b-----------         --------^b
  131.         +           -   increase text attribute
  132.         -           -   decrease text attribute
  133.         A?          -   set text attribute to ?
  134.         F?          -   set foreground text attribute to ?
  135.         B?          -   set background text attribute to ?
  136.         I           -   toggle intensity
  137.         L           -   toggle blink
  138.         X           -   reverse text attribute
  139.         R?          -   set window row coordinate to ?
  140.         C?          -   set window column coordinate to ?
  141.         E?          -   erase ?:
  142.                             W - entire window
  143.                             L - to end-of-line
  144.                             S - to end-of-window
  145.         D??         -   display ? character ? times
  146.  
  147.  
  148.     ^bWindow output Escape codes are only available in the window TTY output^b
  149.     ^bstring functions.  Valid functions are wprintf(), wputs(), wputsw(), and^b
  150.     ^bothers.  Also, the text inside help files can contain Escape codes^b
  151.     ^b(excluding cross-reference items).  The Escape code parameters MUST be^b
  152.     ^bcharacter (byte) size.  Parameters should be input as binary.  For^b
  153.     ^bexample, 5 would be '\005'.  If you are using them from inside a^b
  154.     ^bprintf() format string, you can use the '%c' format specifier to supply^b
  155.     ^bthe parameter from the list of variables.^b
  156.  
  157.     Example Usage:
  158.  
  159.         wprintf("\033A%cNormal \033IBright\033I \033LBlink\033L"
  160.                 " \033XReverse\033X\n",CYAN|_BLUE);
  161.         wprintf("\033R%c\033C%cRow %d, Col %d\n",3,5,3,5);
  162.         wputs("\033DA\014 = 'A' 12 times\n");
  163.  
  164. !short:   AppendixD     ^bFormat Control Characters^b
  165.  
  166.     ^bAppendix D - Format Control Characters^b
  167.  
  168.      ^bFCC                Description^b
  169.      ^b---                -----------^b
  170.       #         Allows numeric characters '0' thru '9'.
  171.       %         Allows numeric characters '0' thru '9' and ' '.
  172.       9         Allows numeric characters '0' thru '9', '.', '-', and '+'.
  173.       ?         Allows any character.
  174.       *         Allows any printable character.
  175.       A         Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
  176.       D         Allows date characters '0' thru '9', '-', and '/'.
  177.       F         Allows legal MS-DOS filename characters.
  178.       H         Allows hexadecimal characters '0' thru '9', 'A' thru 'F',
  179.                 and 'a' thru 'f'.
  180.       L         Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
  181.                 Input letters will be converted to lowercase.
  182.       M         Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
  183.                 Input letters will be converted to mixed case
  184.       P         Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
  185.                 Input letters will be displayed as spaces, which is useful
  186.                 for entering passwords.
  187.       T         Allows telephone number characters '0' thru '9', '(', ')',
  188.                 '-', and ' '.
  189.       U         Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
  190.                 Input letters will be converted to uppercase.
  191.       W         Allows legal MS-DOS filename characters, including
  192.                 wildcards.
  193.       X         Allows alphanumeric characters 'A' thru 'Z', 'a' thru 'z',
  194.                 '0' thru '9', and ' '.
  195.       Y         Allows yes/no response characters 'Y', 'N', 'y', and 'n'.
  196.  
  197.       (space)   Space characters can be used throughout a format string to
  198.                 improve its readability.
  199.  
  200.       <         Start of inclusion set.  An inclusion set allows you to
  201.                 specify the only allowable characters for a position.
  202.  
  203.       >         End of inclusion set.  Any characters listed between the
  204.                 left and right angle brackets are part of the set.
  205.  
  206.       [         Start of exclusion set.  An exclusion set allows you to
  207.                 specify characters that aren't allowed in that position.
  208.  
  209.       ]         End of exclusion set.  Any characters listed between the
  210.                 left and right square brackets are part of the set.
  211.  
  212.       '         Start or end of quoted text that will be displayed either in
  213.                 the input field or as you are typing.  All characters in
  214.                 between the start and end quotes will be displayed as text.
  215.  
  216.       "         Same as the single quote.  Is useful if you need to actually
  217.                 display a single quote as text.  Note that in C, you must
  218.                 represent the double quote inside the string as:  \"
  219.  
  220.       !         Start and stop a command toggle sequence.  Any characters
  221.                 in between the start and stop exclamation points are treated
  222.                 as command toggles.  You can have as many command toggles
  223.                 as you like between the exclamation points.  Valid command
  224.                 toggles are listed below.  Command Toggles are valid with
  225.                 inputsf() and winputsf() only!
  226.  
  227.  
  228.     ^bCommand^b
  229.     ^bToggle                    Description^b
  230.     ^b-------                   -----------^b
  231.       -         Decreases text attribute.  Valid with winputsf() only.
  232.       +         Increases text attribute.  Valid with winputsf() only.
  233.       C         Toggles copying of quoted characters to receiving buffer.
  234.                 The default is off.
  235.       E         Toggles Escape checking.  When on, if Escape is pressed, the
  236.                 receiving buffer will be emptied and an error code will be
  237.                 returned.  The default for inputsf() is on. The default for
  238.                 winputsf() is the value of the global variable _winfo.esc.
  239.       L         Toggles lower-case conversion.  When on, all input letters
  240.                 will be forced to lower-case.  The default is off.
  241.       M         Toggles mixed-case conversion.  When on, input letters will
  242.                 be forced to upper-case for the first letter of each word
  243.                 and lower-case for the remaining letters.  The default is
  244.                 off.
  245.       P         Toggles password mode.  When on, input characters will be
  246.                 echoed to the screen as spaces.  This is useful for password
  247.                 fields.  The default is off.
  248.       U         Toggles upper-case conversion.  When on, input letters will
  249.                 be forced to upper-case.  The default is off.
  250.  
  251.     Examples:
  252.  
  253.     inputsf(name,"'Enter name:  ' !UR! XXXXX !R! XXXXXXXXXX");
  254.  
  255.     ^bPrompts for name, inputs string from keyboard converting characters to^b
  256.     ^buppercase as it goes, allows up to 15 alphanumeric characters as input.^b
  257.     ^bThe return key is disabled until at least 5 characters have been^b
  258.     ^bentered.  Input characters will be copied to the receiving buffer, name,^b
  259.     ^bwhich must be large enough to hold all 16 characters - 15 for the input^b
  260.     ^bstring, and one for the terminating '\0'.^b
  261.  
  262.  
  263.     winputsf(phone," 'Enter phone:  '!RC! '(' ### ') ' ### '-' ####");
  264.  
  265.     ^bPrompts for a full phone number including area code, allows only digit^b
  266.     ^bcharacters and displays format punctuation as it goes.  The entire field^b
  267.     ^bmust be filled before return can be pressed.  All of the characters^b
  268.     ^bexcept the prompt will be copied to the receiving buffer, phone.  This^b
  269.     ^bbuffer must be large enough to hold 15 characters - 10 for the phone^b
  270.     ^bnumber digits, 4 for the copied punctuation characters, and 1 for the^b
  271.     ^bterminating '\0'.^b
  272.  
  273.     winpdef( 1,16,date,"<01>#'/'<0123>#'/'<89>#",0,0,NULL,0);
  274.  
  275.  
  276.     ^bDefines an input field that will accept a MMDDYY date.  Note the use of^b
  277.     ^bthe inclusion set '<' and '>' characters to aid in allowing only valid^b
  278.     ^bnumbers.  The receiving buffer, date, must be at least 7 characters to^b
  279.     ^bhold the 6 date characters and the terminating '\0'.^b
  280.  
  281. !short:   AppendixE     ^bInput Field Editing Keys^b
  282.  
  283.     ^bAppendix E - Input Field Editing Keys^b
  284.  
  285.  
  286.           ^bKey                  Action^b
  287.           ^b---                  ------^b
  288.         LeftArrow             cursor left
  289.         RightArrow            cursor right
  290.         UpArrow               cursor up
  291.         DownArrow             cursor down
  292.         Ctrl-LeftArrow        word left
  293.         Ctrl-RightArrow       word right
  294.         Tab                   field right
  295.         Shift-Tab             field left
  296.         Enter                 process field
  297.         Ctrl-Enter            process all fields
  298.         Decimal (.)           move to right side of decimal point
  299.         Home                  beginning of field
  300.         End                   end of field line / end of field
  301.         Ctrl-Home             beginning of first field
  302.         Ctrl-End              end of last field
  303.         Ins                   toggle field insert mode
  304.         Del                   delete character at cursor
  305.         BackSpace             delete character left
  306.         Ctrl-BackSpace        delete word left
  307.         Ctrl-R                restore field to original contents
  308.         Ctrl-T                delete word right
  309.         Ctrl-U                delete to end of field
  310.         Ctrl-Y                delete to end of last field
  311.         Esc                   abort data entry (if Escape checking is on)
  312.