curses and line graphics

Peter Farrell peter at sigma21.oz
Tue Jul 24 17:48:18 AEST 1990


I am running on a Convergent Technologies Server/PC,  an SVR3 based
system.  I've an application which uses curses and now I
want to draw boxes in a window and outline these boxes with VT100
style line graphics. The curses library uses terminfo and the
terminal's terminfo entry contains definitions for 'acsc', 'smacs' and
'rmacs'.

There is a "box" function in the curses library. According to the
doc., this uses the ACS_VLINE and ACS_HLINE characters. My trivial
test program displays the box, but the outline characters are those
from the acsc string (without the terminal being put into the
alternate character set mode).

Does anyone know if the fact that curses doesn't go into graphics is a
bug in any other versions of curses? Are there any obvious things I
should do as well as calling box().

I wrote my own box routine. It uses the ACS_ defined characters. This
time the trivial test prog sends the 'enacs' string up front and
everything in the window is displayed using the graphics set.

Frustration. Does anyone know how to draw boxes within curses windows?

Help.

Peter Farrell



More information about the Comp.unix.i386 mailing list