home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!att!ucbvax!FNAL.FNAL.GOV!"WARNER::DAMBIK"
- From: WARNER::DAMBIK@FNAL.FNAL.GOV (Ed Dambik)
- Newsgroups: comp.os.vms
- Subject: RE: How do I use colour under VMS?
- Message-ID: <930120103559.22c00e9b@FNAL.FNAL.GOV>
- Date: 20 Jan 93 16:35:59 GMT
- Sender: usenet@ucbvax.BERKELEY.EDU
- Organization: The Internet
- Lines: 38
-
- Peter De Rijk writes:
- >
- >I am working on a C program on a VAXstation. I currently use the Curses library
- >for output to terminal or DECterm. I would like to be able to display text in
- >different colours (if the terminal supports it). The Curses package under VMS
- >does not support colour. Programming in X woul take too much time ( especially
- >since I still would have to learn it). Is there another, easy, way to get
- >colour. I only need the very basic output commands: put a cursor on specified
- >position, and print characters (but in colour).
- >Any help would be greatly appreciated,
- >
- >Peter
-
- ANSI Color is available under SMG using the SMG$M_USER1 through SMG$M_USER8
- text attributes. Please note that DEC color terminals do NOT support ANSI
- color (only DECTerms and some terminal emulators do). Aside from sending
- out your own escape sequences, I'm not certain how you would use color from
- curses. The relevant escape sequnce are called SGRs and include:
-
- <esc>[30m through <esc>[37m
-
- -or-
-
- <CSI>30m through <CSI>37m
-
- where 30=Black, 31=Red, 32=Green, 33=Yellow, 34=Blue, 35=Magenta,
- 36=Cyan, and 37=White text.
-
- Hope that helps.
-
- Ed Dambik
- Fermilab, Research Division, EE Dept., Controls Software Group
- HEPnet/SPAN: FNAL::DAMBIK (43009::DAMBIK)
- Internet: DAMBIK@FNAL.FNAL.GOV
- BitNet: DAMBIK@FNAL
- USnail: Fermilab POB 500 MS/220 Batavia, IL 60510
-
-
-