The NetBSD Project

CVS log for src/lib/libcurses/attributes.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libcurses

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.35 / (download) - annotate - [select for diffs], Tue Oct 25 06:20:01 2022 UTC (17 months, 3 weeks ago) by blymn
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.34: +26 -5 lines
Diff to previous 1.34 (colored)

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.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Apr 12 07:03:04 2022 UTC (2 years ago) by blymn
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Make the default colour pair be pair 0 which appears to match other
curses implementations.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 8 20:50:01 2021 UTC (2 years, 4 months ago) by andvar
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

fix various typos in comments and log messages.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Sep 6 07:03:49 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.31: +2 -26 lines
Diff to previous 1.31 (colored)

Expand __CTRACE() to __nothing #ifndef DEBUG.

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

No binary changes, except for line numbers for assert().

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jul 25 20:18:50 2019 UTC (4 years, 8 months ago) by uwe
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.30: +11 -2 lines
Diff to previous 1.30 (colored)

#ifdef HAVE_WCHAR around enhanced curses stuff.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Nov 24 01:04:18 2018 UTC (5 years, 4 months ago) by uwe
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

attron(), attroff() - don't take a shortcut.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Nov 23 11:16:59 2018 UTC (5 years, 4 months ago) by uwe
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

wattr_set - turn off all wide attributes (fix unedited copy/paste).

Revision 1.28 / (download) - annotate - [select for diffs], Fri Nov 23 11:15:14 2018 UTC (5 years, 4 months ago) by uwe
Branch: MAIN
Changes since 1.27: +20 -20 lines
Diff to previous 1.27 (colored)

Rename the reserved argument from "opt" to "opts" to match SUS text.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Nov 23 11:11:59 2018 UTC (5 years, 4 months ago) by uwe
Branch: MAIN
Changes since 1.26: +123 -100 lines
Diff to previous 1.26 (colored)

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.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Nov 22 23:37:31 2018 UTC (5 years, 4 months ago) by uwe
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

Drop a few redundant casts of a variable to its own type.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 22 23:29:09 2018 UTC (5 years, 4 months ago) by uwe
Branch: MAIN
Changes since 1.24: +32 -32 lines
Diff to previous 1.24 (colored)

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.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Oct 29 01:27:39 2018 UTC (5 years, 5 months ago) by uwe
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Fix indentation.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 10 21:56:50 2017 UTC (7 years, 3 months ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.22: +27 -19 lines
Diff to previous 1.22 (colored)

Use the terminal of the SCREEN of the WINDOW rather than cur_term
for window attribute functions.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 6 13:53:18 2017 UTC (7 years, 3 months ago) by roy
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

KNF.
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.

No functional changes.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Dec 25 10:08:20 2010 UTC (13 years, 3 months ago) by blymn
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, localcount-20160914, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: pgoyette-localcount
Changes since 1.20: +5 -2 lines
Diff to previous 1.20 (colored)

Little bit more debug information.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 3 15:34:40 2010 UTC (14 years, 2 months ago) by roy
Branch: MAIN
Changes since 1.19: +47 -47 lines
Diff to previous 1.19 (colored)

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jun 13 03:15:50 2008 UTC (15 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (colored)

avoid c99 on DEBUG.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:01 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.17: +2 -9 lines
Diff to previous 1.17 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.17 / (download) - annotate - [select for diffs], Mon Apr 14 19:46:42 2008 UTC (16 years ago) by jdc
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.16: +11 -11 lines
Diff to previous 1.16 (colored)

Make this compile when HAVE_WCHAR is not defined.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Mar 21 13:41:49 2008 UTC (16 years ago) by jdc
Branch: MAIN
CVS Tags: matt-armv6-nbase
Changes since 1.15: +99 -16 lines
Diff to previous 1.15 (colored)

Add termattrs() and term_attrs() (requested by wiz@).
Only allow standout and underline if the terminal can do them.

Revision 1.15 / (download) - annotate - [select for diffs], Mon May 28 15:01:54 2007 UTC (16 years, 10 months ago) by blymn
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Changes since 1.14: +41 -13 lines
Diff to previous 1.14 (colored)

Merge in wide curses code done as a Summer of Code project by
Ruibiao Qiu.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 21 13:25:36 2007 UTC (17 years, 2 months ago) by jdc
Branch: MAIN
Changes since 1.13: +12 -11 lines
Diff to previous 1.13 (colored)

Add debug "areas" that allow selective debugging by setting the
"CURSES_TRACE_MASK" environment variable.  Postive vales include
debug areas, negative values exclude them.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 21 00:20:28 2003 UTC (20 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, wcurses-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wcurses
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Don't use NULL to compare against an int.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 30 07:38:42 2003 UTC (21 years ago) by jdc
Branch: MAIN
Changes since 1.11: +192 -42 lines
Diff to previous 1.11 (colored)

Add attr_set() group of functions.
Fixes PR lib/20034 by Thomas Klausner.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 17 11:07:19 2003 UTC (21 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.10: +6 -6 lines
Diff to previous 1.10 (colored)

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)

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 27 21:04:10 2003 UTC (21 years, 2 months ago) by jdc
Branch: MAIN
Changes since 1.9: +3 -8 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 19 21:34:25 2000 UTC (23 years, 4 months ago) by jdc
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.8: +12 -12 lines
Diff to previous 1.8 (colored)

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).

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 11 22:44:45 2000 UTC (23 years, 11 months ago) by jdc
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.7: +24 -11 lines
Diff to previous 1.7 (colored)

New function getattrs().
Add win to debug output.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 28 23:37:11 2000 UTC (23 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +32 -133 lines
Diff to previous 1.6 (colored)

Clean up a bunch more logic.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Apr 24 14:09:42 2000 UTC (23 years, 11 months ago) by blymn
Branch: MAIN
Changes since 1.5: +6 -1 lines
Diff to previous 1.5 (colored)

* 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.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 16 09:48:09 2000 UTC (24 years ago) by jdc
Branch: MAIN
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored)

Add extra debug output (for wattrset()).

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 15 13:17:02 2000 UTC (24 years ago) by blymn
Branch: MAIN
Changes since 1.3: +39 -10 lines
Diff to previous 1.3 (colored)

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.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 12 21:43:57 2000 UTC (24 years ago) by jdc
Branch: MAIN
Changes since 1.2: +114 -171 lines
Diff to previous 1.2 (colored)

Copyright assgned to TNF.
Add check for conflict with colour.
Remove code duplication in wattrset().
Shrink one line comments.
Consolidate DEBUG output.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 11 13:57:08 2000 UTC (24 years ago) by blymn
Branch: MAIN
Changes since 1.1: +59 -47 lines
Diff to previous 1.1 (colored)

Made data structures opaque

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 13 14:08:17 1999 UTC (25 years ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, curses-v3-base, comdex-fall-1999-base, comdex-fall-1999
Branch point for: curses-v3

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!

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>