[comp.unix.sysv386] Curses again

markr@resrch.molienergy.bc.ca (Mark Reid) (04/17/91)

Has anyone got underline to work in curses? I have tried and it appears
that the driver supplied doesn't support this. If this is the case, does
ODT 1.1 support it or can I get other drivers that do.

Thanks for any info in advance.

Mark Reid.

toma@swsrv1.cirr.com (Tom Armistead) (04/18/91)

In article <1991Apr17.141346.11719@molienergy.bc.ca> markr@resrch.molienergy.bc.ca (Mark Reid) writes:
>Has anyone got underline to work in curses? I have tried and it appears
>that the driver supplied doesn't support this. If this is the case, does
>ODT 1.1 support it or can I get other drivers that do.
>
>Thanks for any info in advance.
>
>Mark Reid.

Underline works finr under curses (if your terminal supports it).  The
console on a PC will NOT support underline (because the PC video hardware
won't support underline in normal text mode).

On 386/ix, you get RED characters where underline should be...  Try this on
your 386/ix console; press '_' then backspace, notice the the cursor turns
RED.

Tom
-- 
Tom Armistead - Software Services - 2918 Dukeswood Dr. - Garland, Tx  75040
===========================================================================
toma@swsrv1.cirr.com                {egsner,letni,ozdaltx,void}!swsrv1!toma

wht@n4hgf.Mt-Park.GA.US (Warren Tucker) (04/19/91)

In article <1991Apr17.141346.11719@molienergy.bc.ca> markr@resrch.molienergy.bc.ca (Mark Reid) writes:
>Has anyone got underline to work in curses? I have tried and it appears
>that the driver supplied doesn't support this. If this is the case, does
>ODT 1.1 support it or can I get other drivers that do.
>
>Thanks for any info in advance.
>
>Mark Reid.

Which curses? Terminfo or termcap?

The changes you need are to the 'us' and 'ue' termcap entries
or similar terminfo entries.

Which terminal? a CGA/EGA/VGA?

Note that color AT-class displays do not support underline in
character modes (a *hard*ware limitation).  You could do it by
writing graphically to the screen and drawing your own
underlines, but that isn't in the curses paradigm at'all :-).

You might try experiemnting with setting us and ue entries to
change colors when the underline attribute is used.
 
----------------------------------------------------------------------------
Warren Tucker, TuckerWare, Mountain Park, GA         wht@n4hgf.Mt-Park.GA.US
"Given any new technology for transmitting information, we seem bound to
use it for great quantities of small talk.  We are only saved by music
from being overwhelmed by nonsense." -- Lewis Thomas, _The Lives of a Cell_