Home | History | Annotate | Download | only in libcurses
History log of /src/lib/libcurses/attributes.c
RevisionDateAuthorComments
 1.36  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.35  25-Oct-2022  blymn branches: 1.35.4;
Fix for lib/57050
Perform a sanity check on the window parameter being passed and return
ERR if it is null. This prevents buggy code crashing.
 1.34  12-Apr-2022  blymn Make the default colour pair be pair 0 which appears to match other
curses implementations.
 1.33  08-Dec-2021  andvar fix various typos in comments and log messages.
 1.32  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.31  25-Jul-2019  uwe #ifdef HAVE_WCHAR around enhanced curses stuff.
 1.30  24-Nov-2018  uwe attron(), attroff() - don't take a shortcut.
 1.29  23-Nov-2018  uwe wattr_set - turn off all wide attributes (fix unedited copy/paste).
 1.28  23-Nov-2018  uwe Rename the reserved argument from "opt" to "opts" to match SUS text.
 1.27  23-Nov-2018  uwe Refactor. Move code to turn attributes on/off into separate
functions. Express both old and new functions to manipulate
attributes using those functions. Check that the the new API's opts
argument (reserved by the standard for future use) is NULL and error
out if not (like getcchar/setcchar). No functional change intended.
 1.26  22-Nov-2018  uwe Drop a few redundant casts of a variable to its own type.
 1.25  22-Nov-2018  uwe Move getattrs() and wcolor_set() so that they are with their peers and
so that wide and non-wide functions are in the same order. While here,
make __wcolor_set() static. No functional change intended.
 1.24  29-Oct-2018  uwe Fix indentation.
 1.23  10-Jan-2017  roy branches: 1.23.12; 1.23.14;
Use the terminal of the SCREEN of the WINDOW rather than cur_term
for window attribute functions.
 1.22  06-Jan-2017  roy KNF.
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.

No functional changes.
 1.21  25-Dec-2010  blymn branches: 1.21.28;
Little bit more debug information.
 1.20  03-Feb-2010  roy Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.19  13-Jun-2008  yamt avoid c99 on DEBUG.
 1.18  28-Apr-2008  martin branches: 1.18.2;
Remove clause 3 and 4 from TNF licenses
 1.17  14-Apr-2008  jdc branches: 1.17.2;
Make this compile when HAVE_WCHAR is not defined.
 1.16  21-Mar-2008  jdc Add termattrs() and term_attrs() (requested by wiz@).
Only allow standout and underline if the terminal can do them.
 1.15  28-May-2007  blymn branches: 1.15.4;
Merge in wide curses code done as a Summer of Code project by
Ruibiao Qiu.
 1.14  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.13  21-Oct-2003  fvdl branches: 1.13.18;
Don't use NULL to compare against an int.
 1.12  30-Mar-2003  jdc Add attr_set() group of functions.
Fixes PR lib/20034 by Thomas Klausner.
 1.11  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.10  27-Jan-2003  jdc Remove check for attribute/colour conflict.
This is now handled in refresh.c as it's not possible to handle the
conflict with background colour here.
 1.9  19-Dec-2000  jdc Rename variables refering to termcap capabilities from NN to __tc_nn. Case
adjusted to match termcap capability. A few other variable names renamed too
(ones related to or derived from termcap variables).
 1.8  11-May-2000  jdc New function getattrs().
Add win to debug output.
 1.7  28-Apr-2000  mycroft Clean up a bunch more logic.
 1.6  24-Apr-2000  blymn * Added rcs id line to files missing it.
* Added code to __restartwin to restore meta and cursor visibility states
* Added code to __stopwin to disable meta.
* Added the *line group of functions for drawing character lines.
 1.5  16-Apr-2000  jdc Add extra debug output (for wattrset()).
 1.4  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.3  12-Apr-2000  jdc Copyright assgned to TNF.
Add check for conflict with colour.
Remove code duplication in wattrset().
Shrink one line comments.
Consolidate DEBUG output.
 1.2  11-Apr-2000  blymn Made data structures opaque
 1.1  13-Apr-1999  mrg branches: 1.1.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.1.6.1  09-Jan-2000  jdc Changes to make libcurses SUS v2 compatible.
 1.13.18.4  28-May-2007  blymn Bump shlib version.
 1.13.18.3  29-Jan-2007  blymn Mask off wide char width when returning attributes.
 1.13.18.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.13.18.1  21-Jan-2007  blymn Wide curses merge
 1.15.4.1  23-Mar-2008  matt sync with HEAD
 1.17.2.2  17-Jun-2008  yamt sync with head.
 1.17.2.1  18-May-2008  yamt sync with head.
 1.18.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.21.28.2  20-Mar-2017  pgoyette Sync with HEAD
 1.21.28.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.23.14.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.23.14.1  10-Jun-2019  christos Sync with HEAD
 1.23.12.1  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.35.4.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed