randy@nlm-vax.ARPA (Rand Huntzinger) (09/05/85)
I am trying to fill out the control functions for the VT52 emulator on the Atari 520ST desktop. It is more than a straight VT52, since I have managed to figure out the following: Sequence Function Sequence Function ======== ======== ======== ======== ESC A Cursor up ESC b_ Set char color ESC B Cursor down ESC c_ Backgrnd color ESC C Cursor right ESC d Clear to BOS ESC D Cursor left ESC e Turn on cursor ESC E Clear screen ESC f Turn off cursor ESC H Home cursor ESC k Home cursor ESC I Insert line (here) ESC l Clear line ESC J Clear to EOS ESC o Clear to BOL ESC K Clear to EOL ESC p Inverse video ESC L Insert line above ESC q Normal video ESC M Delete line ESC Y__ VT52 Direct cursor addressing. Last 2 are address. where: BOL, EOL, BOS, EOS are beginning of line, end of line, beginning of screen and end of screen respectively. An underline is used to represent a variable argument character. The ESC b and ESC c sequences are followed by a color selection byte where the last 2 or 4 bits (depending upon your screen mode) select the color. Default in 4 color mode is: 0 white, 1 red, 2 green and 3 black. I assume with black and white, you select with 1 bit. NOTE that you can hide characters by setting the color of the char and it's background the same. Tabs work and seem to be hard wired every 8 columns. I haven't been able to find character insert or delete functions. This was discovered by trial and error in local mode (HALF duplex). Can anyone verify and/or add to this? Rand Huntzinger