curses/termcap vs. autowrap on DEC terminals

Daniel A. Glasser dag at per2.UUCP
Wed May 3 03:52:56 AEST 1989


[[ I realize that this has probably been covered before.  I am posting ]]
[[ this because some people are still running into this problem.       ]]

There is a problem with some implementations of the curses library
in its interpretation of the autowrap on DEC terminals (VT100 and
later).

The specific problem is that the curses screen update routines
believe that if a character is written into column 80 that the
cursor is left in column 1 of the next line.  The actual behavior
is that the cursor remains displayed in column 80 and does not
move until the next character is received.  If the next character
is a linefeed, the cursor moves down to column 80 of the next line
and the next character received (assuming it is printable) will be
displayed in column 80 of that line.  This is also true of the
relative up/down positioning sequences.

Many "VT100" clones/emulators do not mimmick the DEC terminal behavior
properly.  Some do.  The best bet when you find programs screwing up
the screen display through curses is to make sure the tab settings
on the terminal are the default 8 column tabs (9 17 25 ...), that
the TERMCAP entry for the terminal has auto margins false and that the
terminal itself has autowrap turned off (this should actually not
be required).

-- 
 _____________________________________________________________________________
    Daniel A. Glasser                           One of those things that goes
    uwvax!per2!dag                              "BUMP!!!(ouch)" in the night. 
 ---Persoft, Inc.---------465 Science Drive-------Madison, WI 53711-----------



More information about the Comp.sources.bugs mailing list