From: vesper@vesper.enet.dec.com (Andy V)
Subject: Re: [Q] How can I get color-text in OpenVMS/AXP?
Date: 1996/01/30 [thread overview]
Message-ID: <4elb9m$f7g@nntpd.lkg.dec.com> (raw)
In-Reply-To: 310D65F2.6EE5@otech.otech.co.kr
"Jason,Choi" <jhchoi@otech.otech.co.kr> writes:
>I tried to find out how to get color text at DECterm in OpenVMS/AXP
>for days. but just failed.
>But I couldn't find out how to get RED "hello, world" or BLUE "hello,
>world" at DECterm in OpenVMS/AXP.
$ esc[0,8] = 27
$ write sys$output esc, "[41mHello, World!", esc, "[m"
Works for me!
You do have a color display, I hope :-)
For your reference:
30 black
31 red
32 green
33 yellow
34 blue
35 magenta
36 cyan
37 white
38 white
39 white
(I think some of the `white' entries here are really `default', so they
might not be white if you have different default colors.)
Change the first digit to `4' (i.e. 41, 42...) and you set the color
for the background of the letters.
Andy V
prev parent reply other threads:[~1996-01-30 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-01-30 5:00 [Q] How can I get color-text in OpenVMS/AXP? Jason,Choi
1996-01-30 5:00 ` Andy V [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox