Home | History | Annotate | Download | only in libcurses
History log of /src/lib/libcurses/touchwin.c
RevisionDateAuthorComments
 1.35  23-Dec-2024  blymn Sprinkle about some cycle wasting checks for the win pointer being
null. Unfortunately, ncurses does this and there is some sloppy code
out there that relies on the check resulting in segfaults in
NetBSD curses which then, of course, gets blamed for the error.
 1.34  12-Apr-2022  blymn branches: 1.34.4;
Make the default colour pair be pair 0 which appears to match other
curses implementations.
 1.33  06-Sep-2021  rin Expand __CTRACE() to __nothing #ifndef DEBUG.

Remove most of #ifdef DEBUG around __CTRACE() calls.

No binary changes, except for line numbers for assert().
 1.32  03-Jul-2020  uwe wtouchln - verify/clip input parameters
From Naman Jain in PR lib/55454
 1.31  24-Apr-2019  blymn Add/improve debug output for some routines.
 1.30  06-Jan-2017  roy branches: 1.30.14;
KNF.
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.

No functional changes.
 1.29  02-Jan-2017  roy Implement POSIX Curses functions immedok(3) and syncok(3).
 1.28  07-Jan-2016  jdc branches: 1.28.2;
Display force flag in debug print.
 1.27  06-Dec-2013  blymn Make the touch family of calls actually force an update of the
terminal bypassing optimisations. Previously if curses thought curscr
was in sync with virtscr (curses concept of what is on the screen) then
nothing would be output. This change forces an update out to the terminal
regardless.
 1.26  23-Feb-2010  drochner branches: 1.26.6; 1.26.12;
misc fixes and improvements:
-call setlocale(LC_CTYPE, "") before nl_langinfo(CODESET) if the
locale settings is (still) at "C" - otherwise the CODESET doesn't work
-fix the type of the WACS_* symbols -- this needs to be cchar_t*
-add safeguards where the return value of wcwidth() is used for
loop counters or indexing -- it can be -1
-use more common code in the widechar support case -- in particular
let the wchar functions do the work even if chtype ones were called
-implement wcursyncup/wsyncup/wsyncdown
-somewhat experimental: allow ACS_* variables to refer to WACS_*
table entries -- this way, programs using the old chtype using API
can use UTF8 line drawing on terminals which support UTF8 but not
ACS switching
-fix some logics bugs in UTF8 recognition and ALTCHARSET handling
 1.25  22-Jul-2009  roy Prepare curses for the possibility of changing from termcap to terminfo.
term.h #defines lines, pad_char and no_color_video macros which conflict
with existing curses code. We change lines to alines and nlines depending
on use, pad_char to padchar and no_color_video becomes no_color_attributes
but with a strong alias from no_color_video.
 1.24  28-May-2007  blymn Merge in wide curses code done as a Summer of Code project by
Ruibiao Qiu.
 1.23  21-Jan-2007  jdc Add debug "areas" that allow selective debugging by setting the
"CURSES_TRACE_MASK" environment variable. Postive vales include
debug areas, negative values exclude them.
 1.22  23-Aug-2006  jdc branches: 1.22.4;
Add some more debugging information.
 1.21  01-Jan-2006  jdc branches: 1.21.2;
Don't crash if asked to touch more lines than there are in a window.
 1.20  05-Oct-2003  jdc branches: 1.20.6;
Add redrawwin() and wredrawln().
Fixes PR lib/20038.
 1.19  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.18  17-Feb-2003  dsl Fix resize of windows with subwins.
Let window size be given as a -ver number => lines from bottom.
Fix trace calls of pointers
(approved by Brett Lumn)
 1.17  05-Dec-2002  jdc Add some (useful) debugging to wtouchln().
 1.16  02-Jan-2002  blymn Remove extraneous tabs from blank lines.
 1.15  20-May-2000  mycroft GC __FORCEPAINT.
 1.14  19-May-2000  mycroft Be more careful with the first/last pointers when untouching.
 1.13  26-Apr-2000  blymn * Fixed bug in copywin.
* Fixed bug in overwrite.
* Added functions is_linetouched, is_wintouched, untouchwin and wtouchln.
 1.12  15-Apr-2000  jdc Don't reset firstchp and lastchp even if this line was not dirty.
They could have been set previously by a parent window or sub-window.
 1.11  15-Apr-2000  blymn Added functions to replace what were previously macros in curses.h
(this is a requirement of SUSv2) - the old macro behaviour can be
restored by defining _CURSES_USE_MACROS.
Changed function prototypes to use ANSI style.
All externally visible functions now have ANSI style declarations.
 1.10  11-Apr-2000  blymn Made data structures opaque
 1.9  13-Apr-1999  mrg branches: 1.9.6;
Upgrades the standard NetBSD curses library to provide some
of the SYSV curses facilities. The added features are the collapsing
of arrow and function keysequences (as defined by termcap for the
terminal) into symbolic code returns thus relieving the application of
recognising multi-character key sequences. Other features are the
capability to perform a timed wait for a key (good for when you are
not sure if there is a keypress ready or not) and the capability for
turning off the inter-key timeout when assembling multi-character
function keys.

this work was done by Julian Coleman <J.D.Coleman@newcastle.ac.uk>
and blymn@baea.com.au (Brett Lymn). i'm just integrating it. thanks
HEAPS guys!
 1.8  03-Feb-1998  perry remove obsolete register declarations
 1.7  22-Jul-1997  mikel RCSid police, fix warnings
 1.6  17-Aug-1994  cgd branches: 1.6.2;
clean up import
 1.5  09-Nov-1993  cgd repeat after me: "I hate rcs ids"
 1.4  09-Nov-1993  cgd update to new version from berkeley. doesn't compile yet, nor
does it have rcsid's. this is for diffs.
 1.3  07-Aug-1993  mycroft New version from uunet.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  17-Aug-1994  cgd new libcurses, from new nvi
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.2.2  17-Aug-1994  cgd clean up import
 1.6.2.1  17-Aug-1994  cgd file touchwin.c was added on branch netbsd-1-0 on 1994-08-17 21:52:50 +0000
 1.9.6.2  16-Jan-2000  jdc Remove bsd_touchwin().
 1.9.6.1  09-Jan-2000  jdc Changes to make libcurses SUS v2 compatible.
 1.20.6.1  21-Jan-2006  snj Pull up following revision(s) (requested by jdc in ticket #1108):
lib/libcurses/touchwin.c: revision 1.21
Don't crash if asked to touch more lines than there are in a window.
 1.21.2.1  28-Aug-2006  tron Pull up following revision(s) (requested by jdc in ticket #75):
lib/libcurses/tty.c: revision 1.38
lib/libcurses/tstp.c: revision 1.33
lib/libcurses/touchwin.c: revision 1.22
Add some more debugging information.
 1.22.4.2  21-Jan-2007  jdc Apply the changes that add debug "areas" on HEAD to the wcurses branch.
Add correspending changes to the debug code that is only present on the branch.
 1.22.4.1  21-Jan-2007  blymn Wide curses merge
 1.26.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.26.6.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.28.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.30.14.1  10-Jun-2019  christos Sync with HEAD
 1.34.4.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed