On Tue, 2007-06-19 at 06:19 -0400, Rick Troth wrote:
> Not only are some inbound converted to meaningful VT100-like sequences
> but I found out that some of the *outbound* are already handled too!
> Dunno if this was done by Boeblingen or UTSGlobal,  but either way,
> nice job folks!!

Thanks, the vt100/ANSI emulation was a pet project of mine :-)

> So ... in a pinch,  I tested the followin sequences:
>
>         <ESC>[...H   for explicit cursor placement
>         <ESC>[...J   for clearing the screen
>         <ESC>[...m   for text attributes (eg: color)

Implemented are:
  Esc [ 0 K   Erase from current position to end of line inclusive
  Esc [ 1 K   Erase from beginning of line to current position inclusive
  Esc [ 2 K   Erase entire line (without moving cursor)
  Esc [ 0 J   Erase from current position to bottom of screen inclusive
  Esc [ 1 J   Erase from top of screen to current position inclusive
  Esc [ 2 J   Erase entire screen (without moving the cursor)
  Esc [ <attr> ; <attr> ; ... m
    with <attr> ; <attr> ; ... a sequence of
      0  Reset highlight and color
      4  Start underlining
      5  Start blink
      7  Start reverse
     24  End underlining
     25  End blink
     27  End reverse
     30  Black
     31  Red
     32  Green
     33  Yellow
     34  Blue
     35  Magenta
     36  Cyan
     37  White
     39  Black
  Esc [ <n> A           Cursor <n> Up
  Esc [ <n> F           Cursor <n> Up
  Esc [ <n> B           Cursor <n> Down
  Esc [ <n> e           Cursor <n> Down
  Esc [ <n> E           Cursor <n> Down
  Esc [ <n> C           Cursor <n> Forward
  Esc [ <n> a           Cursor <n> Forward
  Esc [ <n> D           Cursor <n> Backward
  Esc [ <x> G           Set Cursor Horizontal Absolute
  Esc [ <x> `           Set Cursor Horizontal Absolute
  Esc [ <y> ; <x> H     Set Cursor Position (x,y)
  Esc [ <y> ; <x> f     Set Cursor Position (x,y)
  Esc [ <y> d           Set Cursor Vertical Absolute
  Esc 7                 Save Cursor Position
  Esc [ s               Save Cursor Position
  Esc 8                 Restore Cursor Position
  Esc [ u               Restore Cursor Position
  Esc [ <n> @           Insert <n> Characters
  Esc [ <n> P           Delete <n> Characters
  Esc [ <n> X           Erase <n> Characters
  Esc c                 Reset Terminal
  Esc D                 Line Feed
  Esc E                 Next Line
  Esc M                 Reverse Index
  Esc Z                 Respond ID
  Esc [ 5 n             Device Status Report
  Esc [ 6 n             Cursor Position Report

--
blue skies,
  Martin.

"Reality continues to ruin my life." - Calvin.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to