[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are there two families of escapes sequences?

From: Richard
Subject: Re: Are there two families of escapes sequences?
Date: Thu, 23 Oct 2014 04:20:36 +0000 (UTC)

[Please do not mail me a copy of your followup]

The short answer to your question is that there is a standard set of
ANSI ESC sequences and then there are those that are specific to a
particular terminal (or emulator).

Patrick <address@hidden> spake the secret code
<address@hidden> thusly:

>It is not displaying colors right for me. I piped it's output to a file 
>and it looks like:
>where the <ESC> is unprintable

This is not an ANSI sequence.

>I also found a shell script and it is displaying correctly:
>for x in 0 1 4 5 7 8; do for i in `seq 30 37`; do for a in `seq 40 47`; 
>do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; done; echo; 
>done; done; echo "";
>and when it's output is piped to a file it looks like:

This is an ANSI sequence.  Generally ANSI sequences begin with ESC [,
followed by a series of numeric parameters separated by semi-colons
(0;37;40) and terminated by a command sequence (m).

On the terminals wiki, I came up with a means of summarizing command
sequences for different terminals (not all use ESC, so we can't really
call them all ESC sequences).  I call them "code charts".  You can see
the code charts I've created here:

Specifically the code chart for ANSI is here:

That links to an online version of ECMA-48 that describes the full set
of ANSI sequences.
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]