Curses problem on PC monitors

Dave Hammond daveh at marob.MASA.COM
Sat May 14 00:49:20 AEST 1988


Re: Curses output on PC monitors

When displaying standout() text on a CGA or Mono monitor, if the
standout() text is the last text on the line, the standend() routine
does not end standout() mode. All blank space and lines until the next
non-blank text appears in reverse. A typical example is:

    move(0,30);
    standout();
    addstr("A STANDOUT TEXT STRING");
    standend();
    /* ... move to other lines, add more text */
    refresh();

Preceeding or following the standend() with a clrtoeol() does not help
(and is often undesireable, especially if the window is boxed :-).
Please note, this only occurs if the standout() text is the last text on the
line. If any non-blank characters follow the standend(), everything works as
expected.

The environment is a 286 box running SCO Xenix 2.x.

Has anyone experienced the same? Can any suggestions be offered as to
workarounds, or perhaps a more proper use of the Curses function?

Thanks in advance for any advice.

Dave Hammond
DSI Communications, Inc.
--------------------------------
UUCP:   ...!marob!daveh
VOICE:  (516)872-3535
USMAIL: 333 W. Merrick Rd.
        Valley Stream, NY 11580



More information about the Comp.unix.questions mailing list