Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 24 May 1994.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
VT100 control codes

VT100 control codes

alt.ascii-art · 4 messages · 24 May 1994 - 6 Mar 1995
I read somewhere that you can put vt100 control codes in your .plan file.
What code do I use to make the output scroll back up one line, and how 
would I use this in my .plan, i.sig etc. Also, are there any ftp sites 
with this sort of info?

Thanks,
Nick

In article <2rt6fe$6d...@orion.dur.ac.uk>,
N B Pratt  <N.B...@durham.ac.uk> wrote:
>I read somewhere that you can put vt100 control codes in your .plan file.
>What code do I use to make the output scroll back up one line, and how 
>would I use this in my .plan, i.sig etc. Also, are there any ftp sites 
>with this sort of info?
>
>Thanks,
>Nick
>


This was posted a while back, I'm not sure if this has made it into the faq
yet.  It definitely should be if not.








Article 621 of alt.binaries.pictures.ascii:
Path: CS.Arizona.EDU!uunet!spool.mu.edu!howland.reston.ans.net!wupost!waikato!canterbury.ac.nz!equinox.gen.nz!equinox!Colin_Douthwaite
Subject: REPOST: Ansi Escape Codes
Newsgroups: alt.binaries.pictures.ascii,alt.ascii-art
X-Newsreader: TIN [version 1.2 021193BETA PL3]
From: Col...@equinox.gen.nz (Colin Douthwaite)
Message-ID: <Col...@equinox.gen.nz>
Date: Mon, 9 May 94 06:53:54 +1200
Organization: Equinox Networks
Lines: 83
Xref: CS.Arizona.EDU alt.binaries.pictures.ascii:621 alt.ascii-art:9565

                              ANSI ESCAPE SEQUENCES
=============================================================================

Wherever you see '#', that should be replaced by the appropriate number.

        ESC code sequence                       Function
       -------------------              ---------------------------
Cursor Controls:
         ESC[#;#H or ESC[#;#f           Moves cusor to line #, column #
         ESC[#A                         Moves cursor up # lines
         ESC[#B                         Moves cursor down # lines
         ESC[#C                         Moves cursor forward # spaces
         ESC[#D                         Moves cursor back # spaces
         ESC[#;#R                       Reports current cursor line & column
         ESC[s                          Saves cursor position for recall
later
         ESC[u                          Return to saved cursor position

Erase Functions:
         ESC[2J                         Clear screen and home cursor
         ESC[K                          Clear to end of line

Set Graphics Rendition:
         ESC[#;#;....;#m                Set display attributes where # is
                                            0 for normal display
                                            1 for bold on
                                            4 underline (mono only)
                                            5 blink on
                                            7 reverse video on
                                            8 nondisplayed (invisible)
                                            30 black foreground 
                                            31 red foreground 
                                            32 green foreground 
                                            33 yellow foreground 
                                            34 blue foreground 
                                            35 magenta foreground 
                                            36 cyan foreground 
                                            37 white foreground
                                            40 black background
                                            41 red background
                                            42 green background
                                            43 yellow background
                                            44 blue background
                                            45 magenta background
                                            46 cyan background
                                            47 white background

         ESC[=#;7h or                   Put screen in indicated mode where #
is
         ESC[=h or                          0 for 40 x 25 black & white
         ESC[=0h or                         1 for 40 x 25 color
         ESC[?7h                            2 for 80 x 25 b&w
                                            3 for 80 x 25 color
                                            4 for 320 x 200 color graphics
                                            5 for 320 x 200 b & w graphics
                                            6 for 640 x 200 b & w graphics
                                            7 to wrap at end of line 

         ESC[=#;7l or ESC[=l or         Resets mode # set with above command
         ESC[=0l or ESC[?7l

Keyboard Reassignments:
         ESC[#;#;...p                   Keyboard reassignment. The first
ASCII
         or ESC["string"p               code defines which code is to be 
         or ESC[#;"string";#;           changed. The remaining codes define
            #;"string";#p               what it is to be changed to.

         E.g. Reassign the Q and q keys to the A and a keys (and vice
versa).
         ESC [65;81p                    A becomes Q
         ESC [97;113p                   a becomes q
         ESC [81;65p                    Q becomes A
         ESC [113;97p                   q becomes a

         E.g. Reassign the F10 key to a DIR command.
         ESC [0;68;"dir";13p            The 0;68 is the extended ASCII code 
                                        for the F10 key and 13 is the ASCII
                                        code for a carriage return.
         
         Other function key codes       F1=59,F2=60,F3=61,F4=62,F5=63
                                        F6=64,F7=65,F8=66,F9=67,F10=68



-- 
\\======= Scott Gilbert ========\\
 \\ sco...@caslon.cs.arizona.edu  \\
  \\ sco...@gas.uug.arizona.edu    \\
   \\==============================\\

N B Pratt (N.B...@durham.ac.uk) wrote:
: I read somewhere that you can put vt100 control codes in your .plan file.
: What code do I use to make the output scroll back up one line, and how 
: would I use this in my .plan, i.sig etc. Also, are there any ftp sites 
: with this sort of info?

: Thanks,
: Nick

Have a look at my repost today in this newsgroup of the Ansi Escape Codes.

Bye,

In article <2rt6fe$6d...@orion.dur.ac.uk>,
N B Pratt <N.B...@durham.ac.uk> wrote:
> I read somewhere that you can put vt100 control codes in your .plan file.
> What code do I use to make the output scroll back up one line, and how 
> would I use this in my .plan, i.sig etc. Also, are there any ftp sites 
> with this sort of info?

 I don't have any .plans, but I am interested in getting my nose pointed
towards general info about vt100 and pc ansi codes (and other vt variations
and even rip graphics). Any enlightenment would be appreciated. 

Gregg Hungerford - Boulder Creek CA (Multimedia: ftp.netcom.com - cd /pub/gah)
            It's crackers to slip a rozzer the dropsy in snide...
                      ga...@netcom.com / ga...@cruzio.com 

----Internet Header Follows----
Newsgroups: alt.ascii-art
Path:
paradigm.co.jp!spinnews!wnoc-tyo-news!news.u-tokyo.ac.jp!sinetnews!uwvax!uwm.ed
u!lll-winken.llnl.gov!enews.sgi.com!decwrl!netcomsv!netcom.com!gah
From: ga...@netcom.com (gah)
Subject: Re: VT100 control codes
Message-ID: <Wrx...@netcom.com>
Sender: ga...@netcom.com ((gah))
Organization: What me worry?
References: <2rt6fe$6d...@orion.dur.ac.uk>
Date: Thu, 27 Oct 1994 14:46:56 GMT
Lines: 14



--

---------- Sent via Paradigm Online, Tokyo ----------
202.33.54.66 Port 3000                +81-3-5478-7943
  In cyberspace, everyone can hear a samurai scream
-----------------------------------------------------

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art in 1994 - 1995 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post