Commit Graph

448 Commits

Author SHA1 Message Date
jdc
d1f213e76e "New sentence, new line". 2004-03-22 19:11:28 +00:00
jdc
abf59ded7e Increment major number (to 6) because of the change to KEY_MAX, 2004-03-22 18:57:58 +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
efc30049d8 Add KEY_RESIZE support and a SIGWINCH handler.
Fixes PR bin/20032.
This requires a change to KEY_MAX, which affects libform and libmenu, so we
need to change libcurses major number.
2004-03-22 18:57:10 +00:00
wiz
789ce34c16 Remove duplicate article. 2004-03-16 19:51:08 +00:00
snj
9bfae9c898 Spelling fixes. 2004-03-16 19:27:35 +00:00
snj
dcf4b5a2bf Spelling fix. 2004-03-16 19:26:56 +00:00
snj
668bade8ea Spelling fixes. 2004-03-16 19:25:39 +00:00
snj
83b07697ca Spelling fix. 2004-03-16 19:20:20 +00:00
snj
066778123d Drop trailing whitespace. 2004-03-16 19:08:15 +00:00
wiz
f812f7e9a5 Fix off-by-one, okayed by jdc. 2004-03-16 10:58:25 +00:00
wiz
0cc0ff5935 Drop trailing space. 2004-03-16 09:46:36 +00:00
jdc
a02733d775 s/can_change_colors/can_change_color/ 2004-03-16 07:55:05 +00:00
jdc
424b4f06a5 Clarify colour values that can be passed to init_pair(). 2004-03-16 07:54:32 +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
jdc
a61e837cb5 gcc -Wuninitialized 2004-03-16 07:49:01 +00:00
jdc
404624e2be We no longer need <signal.h>. 2004-03-16 07:48:18 +00:00
jdc
72d6b43902 s/colour/color/. From Douwe Keila. 2004-03-16 07:46:24 +00:00
jdc
6db03ed922 Minor style change. 2004-03-16 07:44:31 +00:00
christos
146f07a922 Fix the non working unctrl mess:
1. delete the incorrect duplicate macro from unctrl.h
2. move unctrl macros from curses.h to unctrl.h and make curses.h include
   unctrl.h in curses.h instead of duplicating their definition.
3. constify unctrl arrays; make length unsigned.
2004-02-14 18:23:45 +00:00
wiz
071711957c Use standard comment format. Fix typo. From Douwe Kiela. 2004-01-20 08:31:46 +00:00
wiz
81a9cc23f5 Add function descriptions. From Douwe Kiela. 2004-01-20 08:30:55 +00:00
wiz
4d74fb0ff9 Improve function descriptions. From Douwe Kiela. 2004-01-20 08:30:41 +00:00
wiz
60c0778ca6 Grammer fix. From Douwe Kiela. 2004-01-20 08:29:29 +00:00
wiz
c365bab896 Mini KNF. From Douwe Kiela. 2004-01-20 08:29:09 +00:00
wiz
27297af537 Fix recurring typo in comments. From Douwe Kiela. 2004-01-20 08:28:26 +00:00
wiz
3a7de20e0d Add mv{,w}inch{,n}str. From Douwe Kiela. 2004-01-20 08:27:47 +00:00
wiz
a99c798fbb Add mv{,w}inch{,n}str and mvwscanw. 2004-01-20 08:26:44 +00:00
christos
b7dd6b46f8 Avoid array type is char warning. 2003-12-23 23:12:44 +00:00
jdc
737fe44f7a Increment libcurses minor to 11 for nodelay() void -> int change. 2003-12-04 21:26:09 +00:00
jdc
2dd40f4b6c Make nodelay() return an int.
Now conforms to the Single Unix Specification.
Fixes PR lib/23531 by usa at garbagecollect dot jp.
2003-12-04 21:24:36 +00:00
wiz
6f9372dc27 Typo; from Jared Yanovich via jmc@openbsd. 2003-11-02 11:16:03 +00:00
fvdl
3144ca7d6b Don't compare a char to NULL. 2003-10-21 00:30:05 +00:00
fvdl
f8ba2b4d70 Don't compare an int against NULL. 2003-10-21 00:25:21 +00:00
fvdl
79cc88df48 Don't use NULL to compare against an int. 2003-10-21 00:16:55 +00:00
wiz
449cf546df Link curses_cursor(3) to getmaxyx(3); from Steve Rumble in PR 23183. 2003-10-18 09:08:46 +00:00
wiz
6f0dbbbf08 mvgetstr and mvwgetstr do not have a limit argument; from Steve Rumble in PR 23183. 2003-10-18 09:06:49 +00:00
jdc
324f201e56 Increment libcurses minor to 10 for addition of redrawwin() and wredrawln(). 2003-10-05 10:14:36 +00:00
jdc
d4f82864b6 Add redrawwin() and wredrawln().
Fixes PR lib/20038.
2003-10-05 10:13:02 +00:00
jdc
7c12a98041 Fix __CTRACE arguments. 2003-10-05 08:26:02 +00:00
dsl
b176defcde Revert most of rev 1.27 of addbytes.c and associated changes.
Posix requires that adding '\n' does clrtoeol() and 'x = 0'.
(Making "\r\n" erase the text that has just been displayed.)
Remove __NONL test from addbytes, __NONL is a property of the output device.
2003-08-10 07:37:11 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
dsl
a2a4308b26 Remove unused extern for __winlistp. 2003-08-01 13:29:06 +00:00
dsl
c841017dd9 Do something more sensible for waddbytes(..., "\r\n", ...);
I'm not sure about the clrtoeol() at all though - maybe it should
be done as part of scroll()?
Leave 'x' alone when __NONL set.
2003-07-31 10:36:00 +00:00
dsl
87e998f336 Remove __winlistp, add *screen to WINDOW and initialise in newwin().
Make delwin() remove window from list of windows on its screen.
Free win->lspace and win->lines for subwins (they only share text space).
Free things in the correct (and same) order if malloc() fails in __makenew().
Adjust delscreen() for delwin() removing itself from winlist.
Fixes potential massive corruptions if delwin() called on a main window.
NB: not responsible for the sysinst core dumps :-(
2003-07-30 11:19:00 +00:00
dsl
a04fc5a9fe Use _cursesi_screen->winlistp (depracating __winlist) 2003-07-30 11:11:55 +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
dsl
8f4bd35d69 Adjust layut to put ?: clause on a single line 2003-07-30 11:07:21 +00:00
dsl
5e26f5482a Copy correct size of 1 line when doing insert/delete line on a subwin. 2003-07-29 16:42:55 +00:00
dsl
880234af7e Stop def_prog_mode() saving incorrect termio settings.
Make set_prog_mode() set the correct settings.
I'm not certain how much restoration set_prog_mode() should do, but it
definitely doesn't want to do all of __restartwin().
Maybe __restartwin() should be calling set_prog_mode()?
2003-07-10 12:50:18 +00:00