🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #242

Re: Re^2: VT-100 control sequences

#242
From: Steven Sobol
Date: Sat, 07 Apr 1990 04:59
40 lines
2327 bytes
OKAY... I looked for the file I had that listed all the VT-220 (and therefore
VT-100) control sequences, but I don't remember where it is... so here are some
of the VT-220 codes, including "color" codes. These are the ones that I
remember offhand...

 ESC [#,#,#...#m    Change video attributes: # equals...

       0 : Normal; cancel any attributes that are set.
      *1 : Underline.
      *4 : Bright.
      *5 : Flashing bright/normal or normal/dark.
       7 : Reverse video.

 * : only appears on a VT-220 or VT-100 with Advanced Video Option.
     ESC [1m produces either underlining or reverse video based on how
     setup switch 1-4 (1-4? I think 1-4) is set.

  Also:   PF1 thru PF4  send   ESC OP through ESC OS 
          UP and DOWN   send   ESC [A and ESC [B
          LEFT/RIGHT    send   ESC [D and ESC [C
          Keypad 0-9    send   ESC [Op through ESC [Oy
          Keypad ,     sends   ESC [Ol 
          Keypad ENTER sends   ESC [OM
          Keypad -     sends   ESC [Om
          Keypad .     sends   ESC [On

  ESC [x;yH  moves cursor

  ESC [J clears screen ([0J beg of scrn > C; [1J C > end of scrn; [2J whole sc)
  ESC [K clears line   ([0K beg of line > C; [1K C > end of line; [2K whole ln)

    (C is current position)

I'm going to continue searching for that file and will post it if I find it...

-- 
STEVE SOBOL <SOBOL@UDCPS2.CPS.UDAYTON.EDU> | <STEVEN.SOBOL@AFITAMY.FIDONET.ORG>
 UUCP:!UUNET!DAYVB!{UDCPS3|AFITAMY}!SOBOL  | 318 Founders Hall, Dayton OH 45469
  procedure Standard-Flame: writeln ("People like you make me wanna PUKE!");
 "But Soft- What Yonder Light I See? Tis the Computer Lab. Juliet's at the Sun"
Technical Details
Message-ID: <1990Apr7.045921.3637@udcps3.cps.udayton.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!fernwood!apple!usc!zaphod.mps.ohio-state.edu!uwm.edu!lll-winken!ncis.tis.llnl.gov!blackbird!udecc!udcps3!sobol
References: <76?#QL@rpi.edu> <20698@dartvax.Dartmouth.EDU> <305@tenset.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!fernwood!apple!usc!zaphod.mps.ohio-state.edu!uwm.edu!lll-winken!ncis.tis.llnl.gov!blackbird!udecc!udcps3!sobol
From: sobol@udcps3.cps.udayton.edu (Steven Sobol)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: Re^2: VT-100 control sequences
Summary: This is only some of them, but...
Message-ID: <1990Apr7.045921.3637@udcps3.cps.udayton.edu>
Date: 7 Apr 90 04:59:21 GMT
References: <76?#QL@rpi.edu> <20698@dartvax.Dartmouth.EDU> <305@tenset.UUCP>
Reply-To: sobol@udcps3.cps.udayton.edu (Steven Sobol)
Organization: The University of Dayton Computer Science Department, Dayton, Ohio
Lines: 40