Commit Graph

503 Commits

Author SHA1 Message Date
veego e4f44a55a6 Fix compile errors on i386 by changing %ld to %zu. 2007-05-29 19:07:19 +00:00
blymn eaa84a63c0 Change debug handling, now we write debug out iff CURSES_TRACE_FILE
has been set in the environment, this prevents people using MKDEBUGLIB
getting more than they bargained for.

Tidied up the debug settings in the Makefile to reflect the above change,
we no longer need to have FULL_DEBUG since nothing is written by default.
2007-05-29 13:20:21 +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 3ad888c757 Pull down the following from the wcurses branch:
ctrace.c: revision 1.16.2.2
  initscr.c: revision 1.27.18.2
Orginal commit message:

Do the debug initialisation only in ctrace.c.  Otherwise, it might not
get done, for example, if we start curses with setterm() and not initscr().
2007-01-22 21:14: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
blymn fa0b432b40 Wide curses merge 2007-01-21 11:38:58 +00:00
blymn 17c16404e9 This file originates from the ncurses distribution, thanks to the ncurses people for letting us use it 2007-01-21 11:38:58 +00:00
blymn 5dfe4c8b18 Wide curses merge 2007-01-21 11:38:58 +00:00
hubertf 55ac93d329 Remove more duplicate #includes, and a few spurious whitespaces at EOL
From Slava Semushin <slava.semushin@gmail.com>
2007-01-17 23:24:22 +00:00
jdc beb55bfff9 Handle cases where the application installs a SIGWINCH handler after the
curses one is installed by:

  1.  not reinstalling the curses one after restarting
  2.  not sending KEY_RESIZE

Also, update the size of curscr, stdscr and __virtscr to match the new
screen size, so that their sizes are always updated.

Fixes the cases where applications call endwin() and then refresh() in
their SIGWINCH handler (i.e. the resizing problems in PR pkg/27777).
2006-08-25 17:04:32 +00:00
jdc 52ef6583f9 Add some more debugging information. 2006-08-23 19:23:55 +00:00
jdc ed312f0773 When deleting windows and screens, also set to NULL the standard names
that refer to the window or screen just deleted.
Add some more debugging information.
2006-08-23 19:23:14 +00:00
jdc c4b88fb280 Make sure we update the correct window when changing colour pairs. 2006-08-23 19:20:37 +00:00
wiz 1c4f3b5dd5 Bump date for previous. 2006-07-29 23:47:39 +00:00
christos ad66eb8252 PR/34011: Julian Coleman: Limit timeout to 25.5 seconds. 2006-07-25 21:45:00 +00:00
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