| #
6348e3f3 |
| 23-Dec-2024 |
blymn <blymn@NetBSD.org> |
Sprinkle about some cycle wasting checks for the win pointer being null. Unfortunately, ncurses does this and there is some sloppy code out there that relies on the check resulting in segfaults in N
Sprinkle about some cycle wasting checks for the win pointer being null. Unfortunately, ncurses does this and there is some sloppy code out there that relies on the check resulting in segfaults in NetBSD curses which then, of course, gets blamed for the error.
show more ...
|
| #
ee6c5161 |
| 19-Oct-2022 |
blymn <blymn@NetBSD.org> |
Fixes for lib/56926 amongst other things: - plod now correctly accounts for wide characters when plodding - use erase line when in color mode if the terminal has the capability - ensure that the C
Fixes for lib/56926 amongst other things: - plod now correctly accounts for wide characters when plodding - use erase line when in color mode if the terminal has the capability - ensure that the CA_CONTINUATION flag is applied consistently to the subsequent characters in a wide character. - fix a bunch of refresh bugs that caused inconsistent placement of wide characters.
show more ...
|
| #
a63e44ac |
| 26-Apr-2022 |
blymn <blymn@NetBSD.org> |
Fix for PR 55517. Actually us x values to recalculate subwin columns.
|
| #
f1942931 |
| 25-Jan-2022 |
blymn <blymn@NetBSD.org> |
Correct (hopefully) the handling of wide characters.
* Remove the WCOL family of macros, these were "stealing" the upper bits of a character attribute to store the column width of a character. No
Correct (hopefully) the handling of wide characters.
* Remove the WCOL family of macros, these were "stealing" the upper bits of a character attribute to store the column width of a character. No warning was given about this in curses.h which meant it was easy to accidentally reuse the bits in use by the WCOL macros (we already did). Add couple of 16bit ints to the character structure iff HAVE_WCHAR is true to hold the display width and wide char related flags (just continuation at the moment) * Convert all instances of WCOL macros to just reference the column width in the char structure so it is not obfuscated. * Fix cursor positioning so placing a cursor in the middle of a wide char actually does just that. * Fix plod so it understands that if the cursor is going to be positioned in the middle of a wide char it cannot just reprint the char to get there. * Fix plodput so it correctly counts the number of output characters for wide characters. * Fix slk routines to properly size the wctomb() buffer.
show more ...
|
| #
43ea4784 |
| 07-Sep-2021 |
rin <rin@NetBSD.org> |
PR lib/56388
For __newwin() and __resizewin(), the line hash was calculated as if HAVE_WCHAR is disabled.
Fix this bug by refactoring __hash_line() function, which calculates the line hash by an ap
PR lib/56388
For __newwin() and __resizewin(), the line hash was calculated as if HAVE_WCHAR is disabled.
Fix this bug by refactoring __hash_line() function, which calculates the line hash by an appropriate method.
show more ...
|
| #
0bd3a620 |
| 06-Sep-2021 |
rin <rin@NetBSD.org> |
Expand __CTRACE() to __nothing #ifndef DEBUG.
Remove most of #ifdef DEBUG around __CTRACE() calls.
No binary changes, except for line numbers for assert().
|
| #
70294c72 |
| 29-May-2021 |
nia <nia@NetBSD.org> |
wresize: don't bound pads to the size of the screen
allows avoiding a workaround in aiomixer,
ok blymn uwe
|
| #
e3b169cf |
| 02-Nov-2018 |
blymn <blymn@NetBSD.org> |
Remove obsolete clauses from copyright block. Original copyright was mine so should be ok to do.
|
| #
dd838550 |
| 03-Oct-2018 |
roy <roy@NetBSD.org> |
curses: resize ripped off windows
The application must still redraw them though.
|
| #
d34c5681 |
| 02-Oct-2018 |
roy <roy@NetBSD.org> |
curses: fix ripoffline
When creating stdscr, ensure it's placed and sized in accordance with lines ripped off. LINES is no longer adjusted for lines ripped off. POSIX makes no mention that it should
curses: fix ripoffline
When creating stdscr, ensure it's placed and sized in accordance with lines ripped off. LINES is no longer adjusted for lines ripped off. POSIX makes no mention that it should be adjusted. Bottom lines are now placed correctly. Lines ripped off are now displayed after calling initscr.
ok kamil@
Fixes PR #53635
show more ...
|
| #
e407f0a0 |
| 28-Sep-2018 |
roy <roy@NetBSD.org> |
curses: resizeterm(3) should always send KEY_RESIZE
Fixes #53636
OK kamil@
|
| #
a2ac1ce4 |
| 24-Jan-2017 |
roy <roy@NetBSD.org> |
Implement POSIX Curses Soft Label Key functions.
|
| #
c77e1d01 |
| 11-Jan-2017 |
roy <roy@NetBSD.org> |
Move the ripoffline logic out of screen.c and into ripoffline.c. Store ripped off lines in the SCREEN structure so we can repaint then when the terminal is resized. Fix mvwin(3) so it can move window
Move the ripoffline logic out of screen.c and into ripoffline.c. Store ripped off lines in the SCREEN structure so we can repaint then when the terminal is resized. Fix mvwin(3) so it can move windows in the ripped off area.
show more ...
|
| #
cc74ade3 |
| 10-Jan-2017 |
roy <roy@NetBSD.org> |
Fix resizing terms.
|
| #
25445577 |
| 10-Jan-2017 |
roy <roy@NetBSD.org> |
Implement POSIX curses function ripoffline(3).
|
| #
50a63ac8 |
| 06-Jan-2017 |
roy <roy@NetBSD.org> |
KNF. Normalise coding style. White space police. Sprinkle some extra braces to make the flow more clear.
No functional changes.
|
| #
4550c528 |
| 05-Jan-2017 |
roy <roy@NetBSD.org> |
Implement is_term_resized and resize_term(3) ncurses extensions. resizeterm(3) is now a wrapper for resize_term(3).
|
| #
43d5eb45 |
| 22-Jul-2009 |
roy <roy@NetBSD.org> |
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
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.
show more ...
|
| #
017de4a6 |
| 29-Apr-2008 |
jdc <jdc@NetBSD.org> |
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.
|
| #
5b4df340 |
| 14-Apr-2008 |
jdc <jdc@NetBSD.org> |
Remove unused code. Only change the scrolling region if the window now has fewer rows.
|
| #
52cd399d |
| 08-Nov-2007 |
jdc <jdc@NetBSD.org> |
Make sure we don't shrink windows or sub-windows so that they end up with zero length or height.
|
| #
c4eef946 |
| 25-Oct-2007 |
jdc <jdc@NetBSD.org> |
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.
|
| #
34bea286 |
| 27-Aug-2007 |
jdc <jdc@NetBSD.org> |
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
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.
show more ...
|
| #
e124de36 |
| 28-May-2007 |
blymn <blymn@NetBSD.org> |
Merge in wide curses code done as a Summer of Code project by Ruibiao Qiu.
|
| #
1f221324 |
| 21-Jan-2007 |
jdc <jdc@NetBSD.org> |
Add debug "areas" that allow selective debugging by setting the "CURSES_TRACE_MASK" environment variable. Postive vales include debug areas, negative values exclude them.
|