bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NCurses still can't write to lower corner or window, pad, or sub window.


From: Charles Merriam
Subject: NCurses still can't write to lower corner or window, pad, or sub window.
Date: Fri, 23 May 2014 12:35:54 -0700

This is bug is about 15 years old.  It bites users of nCurses until
they wrap the functionality.

1.  Make a window, pad, or sub window.
2.  Try to write to lower-right corner.
3.  NCurses will write to that character, and then raise an error to
conform to SVr4 bugs.

This will occur whenever the bottom right corner is written.  It
ignores the idea that cursors are invisible, etc.   Most users end up
writing wrappers to ignore the bug.

The error is in lib_addch.c/wrap_to_next_line().  Instead of the
behavior "raise an error" it should have the behavior "ignore it".
So instead of

    if (!win->_scroll)
        return (ERR)

we should have

   if (!win->_scroll)
      return (OK)

Yes, this is a change in behavior.  I defy anyone to find a piece of
code anywhere that relies upon the error.  Don't you want to be one
that makes software better for the ages?

Charles Merriam
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]