Commit Graph

31 Commits

Author SHA1 Message Date
uwe
7e8b9e03e4 #ifdef HAVE_WCHAR around enhanced curses stuff. 2019-07-25 20:18:50 +00:00
uwe
80d62aa1ec attron(), attroff() - don't take a shortcut. 2018-11-24 01:04:18 +00:00
uwe
3981bd4fdf wattr_set - turn off all wide attributes (fix unedited copy/paste). 2018-11-23 11:16:59 +00:00
uwe
19b437abe9 Rename the reserved argument from "opt" to "opts" to match SUS text. 2018-11-23 11:15:14 +00:00
uwe
44b007ca68 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.
2018-11-23 11:11:59 +00:00
uwe
801bc96314 Drop a few redundant casts of a variable to its own type. 2018-11-22 23:37:31 +00:00
uwe
485cf0548e 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.
2018-11-22 23:29:09 +00:00
uwe
4c629b7589 Fix indentation. 2018-10-29 01:27:39 +00:00
roy
e56dac4e35 Use the terminal of the SCREEN of the WINDOW rather than cur_term
for window attribute functions.
2017-01-10 21:56:50 +00:00
roy
50a63ac8d2 KNF.
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.

No functional changes.
2017-01-06 13:53:18 +00:00
blymn
bcc3426f98 Little bit more debug information. 2010-12-25 10:08:20 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
yamt
60683edb0f avoid c99 on DEBUG. 2008-06-13 03:15:50 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
jdc
afd69f437c Make this compile when HAVE_WCHAR is not defined. 2008-04-14 19:46:42 +00:00
jdc
80b229386d Add termattrs() and term_attrs() (requested by wiz@).
Only allow standout and underline if the terminal can do them.
2008-03-21 13:41:49 +00:00
blymn
e124de36d8 Merge in wide curses code done as a Summer of Code project by
Ruibiao Qiu.
2007-05-28 15:01:53 +00:00
jdc
1f221324cf Add debug "areas" that allow selective debugging by setting the
"CURSES_TRACE_MASK" environment variable.  Postive vales include
debug areas, negative values exclude them.
2007-01-21 13:25:36 +00:00
fvdl
79cc88df48 Don't use NULL to compare against an int. 2003-10-21 00:16:55 +00:00
jdc
b5eb0508f1 Add attr_set() group of functions.
Fixes PR lib/20034 by Thomas Klausner.
2003-03-30 07:38:41 +00:00
dsl
d75ec8181e 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)
2003-02-17 11:07:19 +00:00
jdc
f62975e655 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.
2003-01-27 21:04:10 +00:00
jdc
606508da77 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).
2000-12-19 21:34:24 +00:00
jdc
4cb1d6d3b9 New function getattrs().
Add win to debug output.
2000-05-11 22:44:45 +00:00
mycroft
db72a0c5d6 Clean up a bunch more logic. 2000-04-28 23:37:11 +00:00
blymn
66cab71c72 * 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.
2000-04-24 14:09:41 +00:00
jdc
5daa179562 Add extra debug output (for wattrset()). 2000-04-16 09:48:09 +00:00
blymn
aaf74682b9 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.
2000-04-15 13:17:02 +00:00
jdc
f04694244e Copyright assgned to TNF.
Add check for conflict with colour.
Remove code duplication in wattrset().
Shrink one line comments.
Consolidate DEBUG output.
2000-04-12 21:43:57 +00:00
blymn
23464ee534 Made data structures opaque 2000-04-11 13:57:08 +00:00
mrg
586d4ce109 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!
1999-04-13 14:08:17 +00:00