jdc
c4b88fb280
Make sure we update the correct window when changing colour pairs.
2006-08-23 19:20:37 +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
jdc
140349e83f
Because we are changing the libcurses major number, remove can_change_colors()
...
and change the attribute definitions so that we can support more colour pairs.
2004-03-22 18:57:38 +00:00
jdc
ed325dfb85
Accept any negative number of init_pair(). Noticed by Peter Bex.
...
Swap red/blue and yellow/cyan if necessary in assume_default_colors().
2004-03-16 07:52:43 +00:00
fvdl
f8ba2b4d70
Don't compare an int against NULL.
2003-10-21 00:25:21 +00:00
jdc
7c12a98041
Fix __CTRACE arguments.
2003-10-05 08:26:02 +00:00
dsl
7996b95938
Use _cursesi_screen->winlistp (depracating __winlistp)
...
Optimise and adjust layout so that fewer line breaks are required.
2003-07-30 11:10:42 +00:00
jdc
dcd13397db
Swap red/blue and yellow/cyan when working with Sb/Sf colour. Problem noticed
...
when working on PR 21000.
2003-04-06 07:22:13 +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
a3ce96fb84
Rename can_change_colors() to can_change_color().
...
Add can_change_colors() (that just calls can_change_color()).
Add no_color_video().
Replace __nca with _cursesi_screen->nca.
2003-01-27 21:06:16 +00:00
jdc
1cac4d45c4
Don't allow default colour setting to be overwritten in init_pair().
...
(Also noticed by Pooka).
2002-11-25 09:11:18 +00:00
blymn
d5dc62cbd8
Fix lint nits mainly with the len parameter type in hash_more.
2002-10-22 11:37:34 +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
christos
ce1b68c92d
PR/17352: David Laight: Curses core-dumps on windows > 1024 wide.
2002-06-26 18:13:59 +00:00
blymn
ef5927835e
Remove extraneous tabs from blank lines.
2002-01-02 10:38:27 +00:00
blymn
51344953b1
* Remove termcap globals from public interface
...
* Clean up commented out code
2001-12-11 11:18:17 +00:00
blymn
c84d91aad5
* Major change to add support for the newterm/set_term functions.
...
* Added fix to getch.c suggested by Gabriel Rosenkoetter (thanks :-)
2001-12-02 09:14:20 +00:00
christos
9e90cfbd5c
de-lint:
...
- bad arithmetic shift
- const castaways.
2001-01-05 22:57:56 +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
20e0a208fb
Only return TRUE if we can actually manipulate colours.
2000-05-06 19:03:39 +00:00
mycroft
f9f1ee95d2
Use the mask here too.
2000-04-29 00:43:36 +00:00
mycroft
e06792e318
Fix obvious bugs in init_pair().
2000-04-27 05:03:22 +00:00
jdc
5b8d714caa
Use '__TERMATTR'.
...
Reorder initialisation to make debugging easier to parse.
Use t_getent() not tgetent().
2000-04-27 00:26:57 +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
cc935fb60f
Initialise colour pairs to default (white on black).
...
Move colour initialisation so we don't reinitialise the first 8 colours.
2000-04-21 15:54:42 +00:00
jdc
008e7d1528
Use Sb/Sf if AB/AF not present.
...
Missed a "\n" in debugging printf.
2000-04-18 22:47:40 +00:00
blymn
ec6e2540fe
Multiple fixes:
...
* Added Bill's fixes for errors when compiling with WARNS=1
* Incorporated fixes to make usage of unctrl consistent in debug and
made improvements to ctrace - it now timestamps it's output better.
* Reduced the number of mallocs done by __init_getch by allocating key
structs in bunches instead of singly.
* Removed the shadowing of global declarations in newwin and subwin
functions
2000-04-17 12:25:45 +00:00
jdc
8e3f558953
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.
2000-04-15 22:53:05 +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
17a7ca57a2
Use the window list so that redefinition of a colour pair can be flagged on
...
all affected windows.
2000-04-14 17:37:15 +00:00
jdc
fa395b65d4
Colour specific routines.
2000-04-12 21:43:09 +00:00