home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / kaypro / k1screen.inf < prev    next >
Text File  |  1994-07-13  |  3KB  |  76 lines

  1.                              Kaypro 1 Video
  2.  
  3.      The Kaypro 1 video section was designed to imitate most of the
  4. control sequences of a Lear-Siegler ADM-3A terminal.  For most public
  5. domain and commercial software that require you to install or customize
  6. the display or terminal characteristics, you can choose the ADM-3a from
  7. the menu.  If no choice of "ADM-3A" or "Kaypro" is available on the
  8. menu, you may use the values listed below:
  9.  
  10.  
  11.          Escape Sequences, Control Codes, and Port Commands
  12.  
  13.  
  14.  Function                             ASCII   Decimal  Hex
  15.  
  16. Cursor left                             ^H       7      08
  17. Cursor right                            ^L      12      0C
  18. Cursor down                             ^J      10      0A
  19. Cursor up                               ^K      11      0B
  20.  
  21. Erase from cursor to end of screen      ^W      23      17
  22. Erase from cursor to end of line        ^X      24      18
  23. Clear screen (cancels special effects)  ^Z      26      1A
  24. Home cursor                             ^^      30      1E
  25.  
  26. The following are all preceded by ESC, character #27:
  27.  
  28. Insert line                        E            | Contrary to the
  29. Delete line                        R            | Kaypro 1 manual
  30.  
  31. Inverse video on/off               B0/C0
  32. Reduced intensity on/off           B1/C1
  33. Blinking on/off                    B2/C2
  34. Underlining on/off                 B3/C3
  35. Cursor visible/invisible           B4/C4
  36. Video mode on/off                  B5/C5
  37. Remember/recover cursor position   B6/C6
  38. Status line preservation on/off    B7/C7
  39.  
  40. Cursor address                     =, row + 32, col + 32
  41.  
  42. Where row and col refer to the matrix of 100 by 160:
  43.  
  44. Write pixel            *, row + 31, col + 31
  45. Erase pixel            #32 (space), row + 31, col + 31
  46. Draw line              L, row1 + 31, col1 + 31, row2 + 31, col2 + 31
  47. Erase line             D, row1 + 31, col1 + 31, row2 + 31, col2 + 31
  48.  
  49. The following two commands are shown in their MBASIC format:
  50.  
  51. Stop cursor blinking     OUT 28, 10: OUT 29, 0
  52. Turn cursor to underline OUT 28, 10: OUT 29, 15*
  53.  
  54.                          (* or 79 or 111 for blink rate)
  55.  
  56. In Pascal these commands would take the form port[28]:= 10; etc.
  57.  
  58.  
  59.      The Kaypro 1 (and all 1984 and up models) has 16k of static video
  60. ram controlled by a Synertek 6845.  If you have software for the early
  61. Kaypros that tries to write to video ram, strange things will happen.
  62. The Kaypro 1 uses the additional ram to provide video attributes.
  63.  
  64.      Note: The ESCape sequences, given on page 27 of the Kaypro 1
  65. manual, for "insert line" and "delete line" are reversed.
  66.  
  67.      The ASCII chart on page 28 lists only the characters from decimal
  68. 32 to 127.  Control characters do not display.  Characters ranging from
  69. decimal 128 to 255 display graphic characters.  The easiest way to
  70. display these characters is with the following Mbasic program.
  71.  
  72. 10 FOR I=32 to 255
  73. 11 PRINT I;" - ";CHR$(I)
  74. 12 NEXT
  75. 13 STOP
  76.