Commit Graph

20 Commits

Author SHA1 Message Date
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
jdc 017de4a670 Revert the scrolling region change from revision 1.18, as this breaks (at
least) mutt:

  Only change the scrolling region if the window now has fewer rows.
2008-04-29 17:46:39 +00:00
jdc 5b4df340df Remove unused code.
Only change the scrolling region if the window now has fewer rows.
2008-04-14 20:33:41 +00:00
jdc 52cd399dde Make sure we don't shrink windows or sub-windows so that they end up
with zero length or height.
2007-11-08 06:34:34 +00:00
jdc c4eef94666 Only resize curscr, __virtscr and stdscr when the screen is resized.
Note the behaviour of sub-windows when the parent window is resized.

Fixes PR pkg/37129.
2007-10-25 20:42:07 +00:00
jdc 34bea28655 Fix resizing bug where the values of LINES and/or COLS changed while we
were resizing windows, leading to inconsistencies between the sizes of
stdscr and curscr.

Should fix the curses part of PR lib/36702.
2007-08-27 19:54:29 +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
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
jdc a61e837cb5 gcc -Wuninitialized 2004-03-16 07:49:01 +00:00
dsl a04fc5a9fe Use _cursesi_screen->winlistp (depracating __winlist) 2003-07-30 11:11:55 +00:00
dsl 14b491c2c5 Stop refresh(subwin) doing refresh on the other subwin's created before it.
(If nothing else the cursor would get left in the wrong place).
Fix some if (!flags & MASK) checks.
2003-06-26 17:17:10 +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
dsl f7a8d65f01 resize subwindows when a window is resized, otherwise the subwin has
pointers into the ether.
(approved by christos)
2003-02-10 23:24:27 +00:00
jdc 4a4560b0f4 Only reset flags if the "window" is not a pad. 2002-12-23 12:18:53 +00:00
blymn d5dc62cbd8 Fix lint nits mainly with the len parameter type in hash_more. 2002-10-22 11:37:34 +00:00
blymn 8d2591041a * Added new function idcok - this closes PR 10802
* Added sentinels to the line structures when in debug mode to try
  to pick up data overwrite problems, if they occur.
2002-07-19 13:22:41 +00:00
blymn ef5927835e Remove extraneous tabs from blank lines. 2002-01-02 10:38:27 +00:00
blymn 9fc0329619 Add code to allow resizing of windows and the underlying terminal. 2001-09-20 11:11:54 +00:00