[comp.unix.programmer] Using VT100 graphics characters with curses

jdubb@bucsf.bu.edu (jay dubb) (01/19/91)

I am posting this for a friend of mine, who doesn't have access to
USENET, so please respond directly to mlevin@jade.tufts.edu.

    I am using Curses, in a C program on a BSD 4.3 Unix machine. I
would like to use the VT100 graphics characters on the screen. Is
there a better method than using printf() to write the "enter graphics
character set mode" escape sequence to the terminal, and then using
regular curses to print whatever characters I want? I would rather not
mix printf()s with curses commands. For example, maybe it's possible to
change the characters curses uses to make StandOut mode to be the
begin and end graphics mode escape sequences, and then just use
standout mode for the characters I want to be graphics. Any ideas?
Thanks in advance.

					Mike Levin (mlevin@jade.tufts.edu)

mvadh@cbnews.att.com (andrew.d.hay) (02/12/91)

In article <72691@bu.edu.bu.edu> Mike Levin (mlevin@jade.tufts.edu) writes:
"    I am using Curses, in a C program on a BSD 4.3 Unix machine. I
"would like to use the VT100 graphics characters on the screen. Is
"there a better method than using printf() to write the "enter graphics
"character set mode" escape sequence to the terminal, and then using
"regular curses to print whatever characters I want? I would rather not
"mix printf()s with curses commands. For example, maybe it's possible to
"change the characters curses uses to make StandOut mode to be the
"begin and end graphics mode escape sequences, and then just use
"standout mode for the characters I want to be graphics. Any ideas?
"Thanks in advance.

you should have as=^N and ae=^O in your TERMCAP entry.
(well, this works for sV, anyway...)

-- 
Andrew Hay		+------------------------------------------------------+
Ragged Individualist	| 			JAAAAAAANE!		       |
AT&T-BL Ward Hill MA	|	    HOW DO YOU STOP THIS CRAZY THING?	       |
a.d.hay@att.com		+------------------------------------------------------+