home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ansi / sendc.arj / ANSI.TXT next >
Encoding:
Text File  |  1992-05-12  |  3.7 KB  |  91 lines

  1. The following is a list of ANSI codes which can be used with SENDC.
  2.  
  3. See the accompanying file COLORS.BAT for an example.
  4.  
  5. SENDC appears to be public domain: no doubt someone will advise me 
  6. fairly quickly if this is not the case.  
  7.  
  8. Any queries can be addressed to me: RUDY LACCHIN @2:250/408.
  9.  
  10. $e[#A         cursor up
  11. $e[#B         cursor down
  12. $e[#C         cursor forward
  13. $e[#D         cursor backward
  14. $e[#;#H       cursor position
  15. $e[#;#f       horizontal/vertical position
  16. $e[6n         device status report
  17. $e[#;#R       cursor position report
  18. $e[s          save cursor position
  19. $e[u          restore cursor position
  20. $e[2J         erase display
  21. $e[K          erase line
  22.  
  23. $e[#;...;#m   set graphics rendition
  24.               0 - all attributes off
  25.               1 - high intensity on
  26.               4 - underscore on (monochrome only)
  27.               5 - flashing on
  28.               7 - inverse video on
  29.               8 - invisible (black on black)
  30.               30 - foreground black      40 - background black
  31.               31 - foreground red        41 - background red
  32.               32 - foreground green      42 - background green
  33.               33 - foreground yellow     43 - background yellow
  34.               34 - foreground blue       44 - background blue
  35.               35 - foreground magenta    45 - background magenta
  36.               36 - foreground cyan       46 - background cyan
  37.               37 - foreground white      47 - background white
  38.  
  39. $t    Current time (HH:MM:SS:hhh)                     14:38:02.11         
  40. $d    Current date                                    Tue  2-25-1992           
  41. $p    Current directory of the default drive          C:\SIDEKICK\DATA               
  42. $v    Version number of MS-DOS                        5.0           
  43. $n    Default drive                                   C              
  44. $g    Greater-than character (>)                      >
  45. $l    Less-than character (<)                         <
  46. $q    Equal sign (=)                                  =
  47. $b    Bar character (|)                               |
  48. $_    CR-LF sequence
  49. $h    Backspace and delete the previous character      
  50. $e    ASCII code 1B (escape)                            
  51.  
  52. $e[=#h or     set screen mode
  53. $e[=h  or     0 - 40 x 25 monochrome text
  54. $e[?#h        1 - 40 x 25 colour text
  55.               2 - 80 x 25 monochrome text
  56.               3 - 80 x 25 colour text
  57.               4 - 320 x 200 4-colour graphics
  58.               5 - 320 x 200 monochrome graphics
  59.               6 - 640 x 200 monochrome graphics
  60.               7 - enables wrap at end-of-line
  61.               13 - 320 x 200 colour graphis
  62.               14 - 640 x 200 16-colour graphics
  63.               15 - 640 x 350 monochrome graphics
  64.               16 - 640 x 350 16-colour graphics
  65.               17 - 640 x 480 monochrome graphics
  66.               18 - 640 x 480 16-colour graphics
  67.               19 - 320 x 200 256-colour graphics
  68.  
  69. $e[=#l or     reset screen mode
  70. $e[=l  or     0 - 40 x 25 monochrome text
  71. $e[?#l        1 - 40 x 25 colour text
  72.               2 - 80 x 25 monochrome text
  73.               3 - 80 x 25 colour text
  74.               4 - 320 x 200 colour graphics
  75.               5 - 320 x 200 monochrome graphics
  76.               6 - 640 x 200 monochrome graphics
  77.               7 - disables wrap at end-of-line
  78.               13 - 320 x 200 colour graphis
  79.               14 - 640 x 200 16-colour graphics
  80.               15 - 640 x 350 monochrome graphics
  81.               16 - 640 x 350 16-colour graphics
  82.               17 - 640 x 480 monochrome graphics
  83.               18 - 640 x 480 16-colour graphics
  84.               19 - 320 x 200 256-colour graphics
  85.  
  86. $e[#;#;...#p or   reassign function key
  87. $e["string"p or
  88. $e[#;"string";#;
  89.    #;"string";#p
  90.    
  91.