Problem
The underscore attribute doesn't display on the console, but it
does display using a Scoterm or an xterm window. When I run the
underscore attribute (SGR 4) on the console, the underline attribute
is not displayed. When I run the same attribute using a Scoterm(XC)
or an xterm(XC) window, the underscore attribute is displayed
correctly.An example of this problem is seen by issuing the following at the command line:
UN_ON=`tput smul`
UN_OFF=`tput rmul`
echo "\t\t\tNo underline"
echo "\t\t\t${UN_ON}Underline${UN_OFF}"which displays the following on a Scoterm or xterm:
echo "\t\t\tNo underline"
No underline
echo "\t\t\t${UN_ON}Underline${UN_OFF}"
Underline
---------but the console displays:echo "\t\t\tNo underline"
No underline
echo "\t\t\t${UN_ON}Underline${UN_OFF}"
Underline Cause
The underscore on the SCO console is limited by the video
controller hardware that the computer is using. If the hardware
supports underscore, you can use SGR 4(smul) to set it. If not,
it will not work on the console, but it will work using a Scoterm
or xterm window. See the Select Graphic Rendition chart in the
manual page for screen(HW) for more information on ANSI screen
attribute sequences. Solution
The console emulator and the Scoterm emulator are two different
emulators. The limitation is in the manner in which the SCO
console emulator interacts with certain types of video cards.
Character cells used by the VGA adapter for character display are
only big enough to hold either color details or display attributes,
but not both. Each cell is four bits long; in color mode three are
used for color and one for intensity or blinking. In monochrome
mode, no bits are used for color and so more bits are available
per cell for display attributes. Therefore, monochrome displays
can often display the underscore attribute on both the console
and on a Scoterm or xterm window.NOTE: This also holds true for blink (SGR 5). See also
terminfo(M), terminfo(F), screen(HW), xterm(XC)