home *** CD-ROM | disk | FTP | other *** search
- !short: AppendixA ^bText Attribute Identifiers^b
-
- ^bAppendix A - Text Attribute Identifiers^b
-
-
- ^bForeground Colors Background Colors^b
-
- ^bIdentifier Color Identifier Color^b
- ^b---------- ----- ---------- -----^b
- BLACK - black _BLACK - black
- BLUE - blue _BLUE - blue
- GREEN - green _GREEN - green
- CYAN - cyan _CYAN - cyan
- RED - red _RED - red
- MAGENTA - magenta _MAGENTA - magenta
- BROWN - brown _BROWN - brown
- LGREY - light grey _LGREY - light grey
- DGREY - dark grey
- LBLUE - light blue
- LGREEN - light green
- LCYAN - light cyan
- LRED - light red
- LMAGENTA - light magenta
- YELLOW - yellow
- WHITE - white
-
- BLINK - blinking foreground
-
-
- Example Usage:
-
- BLINK|WHITE|_RED - blinking white on red
- YELLOW|_BLUE - yellow on blue
- LMAGENTA - light magenta on black
- _BLUE - black on blue
-
- !short: AppendixB ^bKeycode Table^b
-
- ^bAppendix B - Keycode Table^b
-
- ^bKey Norm Shift Ctrl Alt^b
- ^b---- ---- ----- ---- ---^b
- A 1E61 1E41 1E01 1E00
- B 3062 3042 3002 3000
- C 2E63 2E42 2E03 2E00
- D 2064 2044 2004 2000
- E 1265 1245 1205 1200
- F 2166 2146 2106 2100
- G 2267 2247 2207 2200
- H 2368 2348 2308 2300
- I 1769 1749 1709 1700
- J 246A 244A 240A 2400
- K 256B 254B 250B 2500
- L 266C 264C 260C 2600
- M 326D 324D 320D 3200
- N 316E 314E 310E 3100
- O 186F 184F 180F 1800
- P 1970 1950 1910 1900
- Q 1071 1051 1011 1000
- R 1372 1352 1312 1300
- S 1F73 1F53 1F13 1F00
- T 1474 1454 1414 1400
- U 1675 1655 1615 1600
- V 2F76 2F56 2F16 2F00
- W 1177 1157 1117 1100
- X 2D78 2D58 2D18 2D00
- Y 1579 1559 1519 1500
- Z 2C7A 2C5A 2C1A 2C00
- 1 0231 0221 N/A 7800
- 2 0332 0340 0300 7900
- 3 0433 0423 N/A 7A00
- 4 0534 0524 N/A 7B00
- 5 0635 0625 N/A 7C00
- 6 0736 075E 071E 7D00
- 7 0837 0826 N/A 7E00
- 8 0938 092A N/A 7F00
- 9 0A39 0A28 N/A 8000
- 0 0B30 0B29 N/A 8100
- , 332C 333C N/A N/A
- . 342E 343E N/A N/A
- / 352F 353F N/A N/A
- ; 273B 273A N/A N/A
- ' 2827 2822 N/A N/A
- [ 1A5B 1A7B 1A1B N/A
- ] 1B5D 1B7D 1B1D N/A
- ` 2960 297E N/A N/A
- - 0C2D 0C5F 0C1F 8200
- = 0D3D 0D2B N/A 8300
- \ 2B5C 2B7C 2B1C N/A
-
-
-
- ^bKey Norm Shift Ctrl Alt^b
- ^b---- ---- ----- ---- ---^b
- F1 3B00 5400 5E00 6800
- F2 3C00 5500 5F00 6900
- F3 3D00 5600 6000 6A00
- F4 3E00 5700 6100 6B00
- F5 3F00 5800 6200 6C00
- F6 4000 5900 6300 6D00
- F7 4100 5A00 6400 6E00
- F8 4200 5B00 6500 6F00
- F9 4300 5C00 6600 7000
- F10 4400 5D00 6700 7100
- Enter 1C0D 1C0D 1C0A N/A
- Ins 5200 5230 N/A N/A
- Del 5300 532E N/A N/A
- Esc 011B 011B 011B N/A
- Home 4700 4737 7700 N/A
- End 4F00 4F31 7500 N/A
- PgUp 4900 4939 8400 N/A
- PgDn 5100 5133 7600 N/A
- <Tab> 0F09 0F00 N/A N/A
- <BackSpace> 0E08 0E08 0E7F N/A
- <LeftArrow> 4B00 4B34 7300 N/A
- <RightArrow> 4D00 4D36 7400 N/A
- <UpArrow> 4800 4838 N/A N/A
- <DownArrow> 5000 5032 N/A N/A
- <Keypad 5> N/A 4C35 N/A N/A
- <Grey *> 372A N/A 7200 N/A
- <Grey -> 4A2D 4A2D N/A N/A
- <Grey +> 4E2B 4E2B N/A N/A
-
- !short: AppendixC ^bWindow Output Escape Codes^b
-
- ^bAppendix C - Window Output Escape Codes^b
-
-
- ^bEscape Code Function^b
- ^b----------- --------^b
- + - increase text attribute
- - - decrease text attribute
- A? - set text attribute to ?
- F? - set foreground text attribute to ?
- B? - set background text attribute to ?
- I - toggle intensity
- L - toggle blink
- X - reverse text attribute
- R? - set window row coordinate to ?
- C? - set window column coordinate to ?
- E? - erase ?:
- W - entire window
- L - to end-of-line
- S - to end-of-window
- D?? - display ? character ? times
-
-
- ^bWindow output Escape codes are only available in the window TTY output^b
- ^bstring functions. Valid functions are wprintf(), wputs(), wputsw(), and^b
- ^bothers. Also, the text inside help files can contain Escape codes^b
- ^b(excluding cross-reference items). The Escape code parameters MUST be^b
- ^bcharacter (byte) size. Parameters should be input as binary. For^b
- ^bexample, 5 would be '\005'. If you are using them from inside a^b
- ^bprintf() format string, you can use the '%c' format specifier to supply^b
- ^bthe parameter from the list of variables.^b
-
- Example Usage:
-
- wprintf("\033A%cNormal \033IBright\033I \033LBlink\033L"
- " \033XReverse\033X\n",CYAN|_BLUE);
- wprintf("\033R%c\033C%cRow %d, Col %d\n",3,5,3,5);
- wputs("\033DA\014 = 'A' 12 times\n");
-
- !short: AppendixD ^bFormat Control Characters^b
-
- ^bAppendix D - Format Control Characters^b
-
- ^bFCC Description^b
- ^b--- -----------^b
- # Allows numeric characters '0' thru '9'.
- % Allows numeric characters '0' thru '9' and ' '.
- 9 Allows numeric characters '0' thru '9', '.', '-', and '+'.
- ? Allows any character.
- * Allows any printable character.
- A Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
- D Allows date characters '0' thru '9', '-', and '/'.
- F Allows legal MS-DOS filename characters.
- H Allows hexadecimal characters '0' thru '9', 'A' thru 'F',
- and 'a' thru 'f'.
- L Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
- Input letters will be converted to lowercase.
- M Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
- Input letters will be converted to mixed case
- P Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
- Input letters will be displayed as spaces, which is useful
- for entering passwords.
- T Allows telephone number characters '0' thru '9', '(', ')',
- '-', and ' '.
- U Allows alpha characters 'A' thru 'Z', 'a' thru 'z', and ' '.
- Input letters will be converted to uppercase.
- W Allows legal MS-DOS filename characters, including
- wildcards.
- X Allows alphanumeric characters 'A' thru 'Z', 'a' thru 'z',
- '0' thru '9', and ' '.
- Y Allows yes/no response characters 'Y', 'N', 'y', and 'n'.
-
- (space) Space characters can be used throughout a format string to
- improve its readability.
-
- < Start of inclusion set. An inclusion set allows you to
- specify the only allowable characters for a position.
-
- > End of inclusion set. Any characters listed between the
- left and right angle brackets are part of the set.
-
- [ Start of exclusion set. An exclusion set allows you to
- specify characters that aren't allowed in that position.
-
- ] End of exclusion set. Any characters listed between the
- left and right square brackets are part of the set.
-
- ' Start or end of quoted text that will be displayed either in
- the input field or as you are typing. All characters in
- between the start and end quotes will be displayed as text.
-
- " Same as the single quote. Is useful if you need to actually
- display a single quote as text. Note that in C, you must
- represent the double quote inside the string as: \"
-
- ! Start and stop a command toggle sequence. Any characters
- in between the start and stop exclamation points are treated
- as command toggles. You can have as many command toggles
- as you like between the exclamation points. Valid command
- toggles are listed below. Command Toggles are valid with
- inputsf() and winputsf() only!
-
-
- ^bCommand^b
- ^bToggle Description^b
- ^b------- -----------^b
- - Decreases text attribute. Valid with winputsf() only.
- + Increases text attribute. Valid with winputsf() only.
- C Toggles copying of quoted characters to receiving buffer.
- The default is off.
- E Toggles Escape checking. When on, if Escape is pressed, the
- receiving buffer will be emptied and an error code will be
- returned. The default for inputsf() is on. The default for
- winputsf() is the value of the global variable _winfo.esc.
- L Toggles lower-case conversion. When on, all input letters
- will be forced to lower-case. The default is off.
- M Toggles mixed-case conversion. When on, input letters will
- be forced to upper-case for the first letter of each word
- and lower-case for the remaining letters. The default is
- off.
- P Toggles password mode. When on, input characters will be
- echoed to the screen as spaces. This is useful for password
- fields. The default is off.
- U Toggles upper-case conversion. When on, input letters will
- be forced to upper-case. The default is off.
-
- Examples:
-
- inputsf(name,"'Enter name: ' !UR! XXXXX !R! XXXXXXXXXX");
-
- ^bPrompts for name, inputs string from keyboard converting characters to^b
- ^buppercase as it goes, allows up to 15 alphanumeric characters as input.^b
- ^bThe return key is disabled until at least 5 characters have been^b
- ^bentered. Input characters will be copied to the receiving buffer, name,^b
- ^bwhich must be large enough to hold all 16 characters - 15 for the input^b
- ^bstring, and one for the terminating '\0'.^b
-
-
- winputsf(phone," 'Enter phone: '!RC! '(' ### ') ' ### '-' ####");
-
- ^bPrompts for a full phone number including area code, allows only digit^b
- ^bcharacters and displays format punctuation as it goes. The entire field^b
- ^bmust be filled before return can be pressed. All of the characters^b
- ^bexcept the prompt will be copied to the receiving buffer, phone. This^b
- ^bbuffer must be large enough to hold 15 characters - 10 for the phone^b
- ^bnumber digits, 4 for the copied punctuation characters, and 1 for the^b
- ^bterminating '\0'.^b
-
- winpdef( 1,16,date,"<01>#'/'<0123>#'/'<89>#",0,0,NULL,0);
-
-
- ^bDefines an input field that will accept a MMDDYY date. Note the use of^b
- ^bthe inclusion set '<' and '>' characters to aid in allowing only valid^b
- ^bnumbers. The receiving buffer, date, must be at least 7 characters to^b
- ^bhold the 6 date characters and the terminating '\0'.^b
-
- !short: AppendixE ^bInput Field Editing Keys^b
-
- ^bAppendix E - Input Field Editing Keys^b
-
-
- ^bKey Action^b
- ^b--- ------^b
- LeftArrow cursor left
- RightArrow cursor right
- UpArrow cursor up
- DownArrow cursor down
- Ctrl-LeftArrow word left
- Ctrl-RightArrow word right
- Tab field right
- Shift-Tab field left
- Enter process field
- Ctrl-Enter process all fields
- Decimal (.) move to right side of decimal point
- Home beginning of field
- End end of field line / end of field
- Ctrl-Home beginning of first field
- Ctrl-End end of last field
- Ins toggle field insert mode
- Del delete character at cursor
- BackSpace delete character left
- Ctrl-BackSpace delete word left
- Ctrl-R restore field to original contents
- Ctrl-T delete word right
- Ctrl-U delete to end of field
- Ctrl-Y delete to end of last field
- Esc abort data entry (if Escape checking is on)