From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4707df717af2f2f3 X-Google-Attributes: gid1164f8,public From: vesper@vesper.enet.dec.com (Andy V) Subject: Re: [Q] How can I get color-text in OpenVMS/AXP? Date: 1996/01/30 Message-ID: <4elb9m$f7g@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 137197777 distribution: world references: <310D65F2.6EE5@otech.otech.co.kr> organization: Digital Equipment Corporation reply-to: andy.vesper@eng.pko.dec.com newsgroups: comp.sys.dec "Jason,Choi" 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