Commit Graph

487 Commits

Author SHA1 Message Date
christos
c93c6166a0 Coverity CID 1246: Don't allow getc == -1 to propagate as an array index. 2006-03-19 01:58:48 +00:00
christos
e9e2c8e419 Coverity 1552: Don't leak memory. 2006-03-19 01:53:11 +00:00
jdc
b7f0401ba9 Handle both background character and background attribute. 2006-02-05 17:39:52 +00:00
jdc
f4948e6f66 Curses_insert has been split into curses_insertch and curses_insertln for
a while now.  Adjust names to suit.
2006-02-05 17:07:13 +00:00
jdc
b3fed27d5d Use the background attributes for the background when inserting characters. 2006-02-05 17:04:46 +00:00
jdc
7800e2b8b9 Use the window background colour, not the default colour.
Should fix PR install/32617
2006-01-26 07:26:37 +00:00
jdc
f2efcd1a0b Note that subwindows inherit the background character and attributes
of the parent window.
2006-01-15 16:57:45 +00:00
wiz
b482fe5453 Fix Xref, bump date for previous. 2006-01-15 11:45:54 +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
264b791562 Don't crash if asked to touch more lines than there are in a window. 2006-01-01 11:48:31 +00:00
dsl
c58f95b0f5 Don't read entry after end of array.
Discovered by Neil Ludban running curses under 'ElecticFence'
2005-10-23 18:38:52 +00:00
christos
cbb99f287d Deal with modern c++ casts. 2005-08-09 02:33:38 +00:00
jdc
af1900d4d8 Make sure that werase() always marks the window as dirty. This fixes a
problem (reported by David Bariod on netbsd-help), where erasing an already
blank window would not clear the screen contents of overlapping windows.
2005-07-27 20:17:42 +00:00
christos
fe6a3ed298 Make these work with today's curses and termcap reality. 2005-05-23 04:04:49 +00:00
wiz
e2bc5f883e Bump date for touchline() correction, and drop trailing whitespace. 2005-03-04 11:41:36 +00:00
blymn
fc90def939 Fixed incorrect documentation of the touchln() function. (thanks Wiz) 2005-03-04 11:15:47 +00:00
dsl
67b39d4957 Change first arg of __hash_more to const void * to remove need for double casts 2005-02-18 22:16:27 +00:00
yamt
98a0fd8d54 fix mvgetch prototype. 2004-12-13 23:51:11 +00:00
dsl
75c6c76be7 Fix (I hope) the bounding checks against the source window. 2004-08-02 18:47:52 +00:00
dsl
9214d0d9c1 overwrite() wasn't copying enough lines or columns.
copywin() couldn't seem to decide whether it should work in window or
screen coordinates - and managed to do neither.
Change copywin() to use window relative coords (as ncurses and solaris do),
and change overwrite() and overlay() to use the modified interface.
It is now possible to use overwrite() to save part of curscr while a
temporary window is drawn.
Fixes PR/26506
2004-08-01 21:48:24 +00:00
blymn
6b3a44ef27 Remove _cursesi_genbuf, it was not being set and caused a SIGSEGV
in getcap().  Fixed getcap() to use screen->cursesi_genbuf.
Thanks to Peter Bex for spotting this.  This closes pr lib/26404.
2004-07-24 13:10:47 +00:00
wiz
a24a61f205 getcurx, getcury, getparx, and getpary also seem to be extensions. 2004-07-23 13:42:16 +00:00
wiz
f849435424 Note that getbegx, getbegy, getmaxx, and getmaxy are extensions
to X/Open Curses. From Peter Bex in PR 26352.
2004-07-23 13:38:48 +00:00
christos
744eb72770 PR/25397: David A. Holland: bug in second loop of resizeterm
(win used uninitialized), hidden by wrong gcc appeasal.
2004-04-29 22:28:51 +00:00
uwe
85cb92089f Add trailing space that got lost from the string definition.
Pointed out in PR lib/25340 by Juho Juopperi.
2004-04-27 02:15:04 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
jdc
eb71bd67da Add missing mvin* and mvwin* manual pages. 2004-04-21 06:24:32 +00:00
christos
9717f6662e check fflush() return code (from Julian Coleman) 2004-04-07 17:27:10 +00:00
wiz
c74c0a1a12 Add a newline, remove a comma, and reword STANDARDS section
slightly.
2004-03-28 12:23:21 +00:00
jdc
3a817d94fd Increment libcurses minor to 1 (addition of *echochar()). 2004-03-28 08:59:15 +00:00
jdc
a6a9a97d12 Changes to support *echochar().
Should fix PR lib/24927.
2004-03-28 08:58:37 +00:00
jdc
5eb61d5ca7 Implement *echochar().
Should fix PR lib/24927.
2004-03-28 08:58:13 +00:00
wiz
359ed99579 Add comma in enumerations, grammar fix, and replace &
with \*[Am] for html output.
2004-03-26 22:18:15 +00:00
jdc
8dded85639 Change TSTP handler back to using signal().
This fixes a problem where vi would not suspend.
Also, make sure that the signal handlers aren't set or removed multiple times.
Finally, add debug output when the signal handlers are set and removed.
2004-03-25 07:35:40 +00:00
jdc
dd5d3aabfc Add (missing) mvgetch() and mvwgetch() manual pages. 2004-03-23 21:56:53 +00:00
jdc
34e5b04618 Clarify the getch() family return values.
Add (missing) mvgetch() and mvwgetch().
2004-03-23 21:53:34 +00:00
jdc
3d248dff59 Change the values of ERR and OK.
This makes our getch() and related functions conform to SUSv2.
Also fixes PR lib/15920.

XXX: This causes an API incompatability, but comes less than 27 hours after
     the libcurses major number was incremented, so should have minimal impact.
2004-03-23 21:35:29 +00:00
jdc
92cd5d7a66 We should check against NULL here.
From Brett Lymn.
2004-03-23 21:17:20 +00:00
wiz
cb35afd77e No comma in an enumeration of only two elements. 2004-03-22 19:51:18 +00:00
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