Thread View: comp.terminals
2 messages
2 total messages
Started by Tim Morris
Wed, 06 Jan 1993 03:54
Colour in VT-100?
Author: Tim Morris
Date: Wed, 06 Jan 1993 03:54
Date: Wed, 06 Jan 1993 03:54
8 lines
719 bytes
719 bytes
Is it possible to select different colours using standard VT-100 codes? Yesterday I logged in to a BBS and it was very colourful, and the configuration menu said "ANSII VT-100". I'm stranded at the moment without my VT-100 manual, can anyone relate to me the codes? How do monochrome terminals react to these codes? Thanks in advance, Tim Morris.
Re: Colour in VT-100?
Author: Richard Shuford
Date: Fri, 08 Jan 1993 05:36
Date: Fri, 08 Jan 1993 05:36
47 lines
2338 bytes
2338 bytes
In article <tmorris.726292471@bruny>,
tmorris@bruny.cc.utas.edu.au (Tim Morris) writes:
>
> Is it possible to select different colours using standard VT-100 codes?
> How do monochrome terminals react to these codes?
Well, the VT100 has a black-and-white screen, so don't expect much in
the way of pastel hues. Some of its descendents, such as the VT241,
can display colors, but require use of the ReGIS graphics protocol to
change them.
The ANSI X3.64 standard itself does not contain any definitions for
changing color, but the corresponding international standard, ISO
DP6429, defines a way to specify colors using the SGR (Set Graphics
Rendition) command.
These 6429-style color functions are in fairly wide use. Two pieces
of software that employ them are Microsoft's ANSI.SYS driver for MS-DOS
and Joe Doupnik's MS-Kermit program. They take the form:
ESC [ Fg ; Bg m
where Fg controls the foreground color and Bg controls the background.
These are expressed as ASCII decimal digits, not binary quantities.
Construct the Fg parameter by taking 30 and adding values for the primary
colors to it; construct Bg by adding primaries to 40. (The "m" is a
literal lowercase M.)
1 = red
2 = green
4 = blue
You can put other attributes in the string, too.
So, cyan (green + blue) foreground on black background would be
ESC [ 36 ; 40 m
(no actual spaces appear in the control string, of course)
Among other places, this is documented in part of MS-Kermit documentation
in the file MSVIBM.VT, which you can obtain from WATSUN.CC.COLUMBIA.EDU.
--
...Richard S. Shuford |"He who oppresses the poor to increase his wealth and
...shuford@cs.utk.edu | he who gives gifts to the rich--both come to poverty.
...Info-Stratus Coord. | Proverbs 22:16 NIV
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads