Commit Graph

25 Commits

Author SHA1 Message Date
uwe
ce63d7aabc wbkgd - when updating window rendition for the new background character,
it's the old background characters that need to be updated, not spaces.

While here, simplify and also fix the bug introduced in 1.20 (that
lost the default color) - actually use the results of wbkgdset().
2018-11-19 20:37:04 +00:00
uwe
af85389f73 wbkgrnd - do not duplicate code that's already in wbkgrndset() 2018-11-18 22:53:22 +00:00
uwe
76bb992903 When we remove default color from attributes, just clear all __COLOR.
It's both a nono-optmization and matches the test used in counterpart
code that adds default color when none is set.
2018-11-18 22:34:32 +00:00
uwe
0b616789d6 Reorder "bkgrnd" functions to match the order of old "bkgd" functions. 2018-11-18 22:18:02 +00:00
uwe
5fc077791a Don't fuse HAVE_WCHAR and (trivial) !HAVE_WCHAR bodies into single
function definition.  Instead provide two sets of definitions under
single #ifdef.  Same object code is generated for both HAVE_WCHAR and
!HAVE_WCHAR.
2018-11-18 22:11:38 +00:00
uwe
ee4af76d2e wbkgd - do not duplicate the code that's already in wbkgdset()
that we do call anyway.
2018-11-18 21:01:16 +00:00
uwe
14d0245468 Fix comments on bkgdset() and friends to match reality. 2018-11-18 20:26:29 +00:00
uwe
3f33c7bd5f Don't mix private and public names for the same thing in one statement.
While here, fix harmless edito in a debug call.
2018-11-18 18:52:29 +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
christos
8a48cf6610 remove bogus malloc casts 2016-10-22 21:55:06 +00:00
roy
43d5eb454b 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.
2009-07-22 16:57:14 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
jdc
fe324c36e9 Set the column width when changing the background using wbkgd(), otherwise
we will see zero width characters in refresh.c:makech().
2007-09-19 22:13:14 +00:00
blymn
070937be37 Fix some compiler warnings.
Remove shadowed variable declarations when DEBUG is defined.
2007-05-29 11:10:55 +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
jdc
978ab4ad4e Background characters and attributes don't need to be kept per character
cell, as they are merged when characters are added.  Remove the per cell
storage and clarify the manual page.  Pointed out by ruibiao@.
2006-01-15 11:43:54 +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
4eb3ef3dac Set the curses default colours to white on black when using colour.
See the Single UNIX Specification, Version 2 :

  http://www.opengroup.org/onlinepubs/007908799/xcurses/can_change_color.html

Also, add the functions :

	use_default_colors();
	assume_default_colors(fore, back);

(from ncurses) that allow the terminal default colours or user-specified
default colours to be used.
2002-08-04 16:43:04 +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
31355762dc Don't replace background character with null character.
Set new background character and attributes in wbkgd().
2000-04-18 22:44:21 +00:00
jdc
032680bbac Add bkgd() and bkgdset() (which were previously just macros). 2000-04-16 09:52:49 +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
simonb
d9726999aa Nuke unused variables. 2000-04-13 00:01:03 +00:00
jdc
92d0751b6e Background manipulation routines. 2000-04-12 21:43:37 +00:00