History log of /src/lib/libcurses/clrtoeol.c |
Revision | | Date | Author | Comments |
1.36 |
| 23-Dec-2024 |
blymn | 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.
|
1.35 |
| 12-May-2022 |
blymn | branches: 1.35.4; Make clrtoeol match the ncurses behaviour where it seems to make the rest of line foreground. This fixes a display oddity in mutt.
|
1.34 |
| 12-Apr-2022 |
blymn | Make the default colour pair be pair 0 which appears to match other curses implementations.
|
1.33 |
| 25-Jan-2022 |
blymn | 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.
|
1.32 |
| 06-Sep-2021 |
rin | Expand __CTRACE() to __nothing #ifndef DEBUG.
Remove most of #ifdef DEBUG around __CTRACE() calls.
No binary changes, except for line numbers for assert().
|
1.31 |
| 15-Mar-2020 |
uwe | werase, wclrtobot, wclrtoeol - make code even more similar. Rename attr to battr to match bch and WINDOW::battr. No functional change intended.
|
1.30 |
| 13-Mar-2020 |
roy | curses: wrap the erase logic in a macro
Easier to use, it's in one place and now hopefully everyone is happy.
X
|
1.29 |
| 12-Mar-2020 |
roy | curses: normalise erase logic with clrtoeol and clrtobot
Define WA_ATTRIBUTES as 0 for the non wide case just to make our code easier to write.
|
1.28 |
| 06-Jan-2017 |
roy | branches: 1.28.14; KNF. Normalise coding style. White space police. Sprinkle some extra braces to make the flow more clear.
No functional changes.
|
1.27 |
| 02-Jan-2017 |
roy | Implement POSIX Curses functions immedok(3) and syncok(3).
|
1.26 |
| 19-Feb-2012 |
christos | branches: 1.26.14; PR/46049: Tim van der Molen: clrtobot() and clrtoeol() do not set background attributes
|
1.25 |
| 22-Jul-2009 |
roy | branches: 1.25.6; 1.25.8; 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.
|
1.24 |
| 29-May-2007 |
blymn | Fix some compiler warnings. Remove shadowed variable declarations when DEBUG is defined.
|
1.23 |
| 28-May-2007 |
blymn | Merge in wide curses code done as a Summer of Code project by Ruibiao Qiu.
|
1.22 |
| 21-Jan-2007 |
jdc | Add debug "areas" that allow selective debugging by setting the "CURSES_TRACE_MASK" environment variable. Postive vales include debug areas, negative values exclude them.
|
1.21 |
| 05-Feb-2006 |
jdc | branches: 1.21.6; Handle both background character and background attribute.
|
1.20 |
| 26-Jan-2006 |
jdc | Use the window background colour, not the default colour. Should fix PR install/32617
|
1.19 |
| 15-Jan-2006 |
jdc | 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@.
|
1.18 |
| 05-Oct-2003 |
jdc | Fix __CTRACE arguments.
|
1.17 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
1.16 |
| 04-Aug-2002 |
jdc | Make sure we always update curx, cury and __ISPASTEOL. From Onno van der Linden in PR lib/16532.
|
1.15 |
| 02-Jan-2002 |
blymn | branches: 1.15.2; Remove extraneous tabs from blank lines.
|
1.14 |
| 20-May-2000 |
mycroft | GC __FORCEPAINT.
|
1.13 |
| 18-Apr-2000 |
jdc | Set background character and attributes for added characters.
|
1.12 |
| 15-Apr-2000 |
blymn | Added functions to replace what were previously macros in curses.h (this is a requirement of SUSv2) - the old macro behaviour can be restored by defining _CURSES_USE_MACROS. Changed function prototypes to use ANSI style. All externally visible functions now have ANSI style declarations.
|
1.11 |
| 11-Apr-2000 |
blymn | Made data structures opaque
|
1.10 |
| 13-Apr-1999 |
mrg | Upgrades the standard NetBSD curses library to provide some of the SYSV curses facilities. The added features are the collapsing of arrow and function keysequences (as defined by termcap for the terminal) into symbolic code returns thus relieving the application of recognising multi-character key sequences. Other features are the capability to perform a timed wait for a key (good for when you are not sure if there is a keypress ready or not) and the capability for turning off the inter-key timeout when assembling multi-character function keys.
this work was done by Julian Coleman <J.D.Coleman@newcastle.ac.uk> and blymn@baea.com.au (Brett Lymn). i'm just integrating it. thanks HEAPS guys!
|
1.9 |
| 03-Feb-1998 |
perry | remove obsolete register declarations
|
1.8 |
| 22-Jul-1997 |
mikel | RCSid police, fix warnings
|
1.7 |
| 17-Aug-1994 |
cgd | branches: 1.7.2; clean up import
|
1.6 |
| 09-Nov-1993 |
cgd | repeat after me: "I hate rcs ids"
|
1.5 |
| 09-Nov-1993 |
cgd | update to new version from berkeley. doesn't compile yet, nor does it have rcsid's. this is for diffs.
|
1.4 |
| 07-Aug-1993 |
mycroft | New version from uunet.
|
1.3 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.2 |
| 09-Jul-1993 |
alm | added Andrew Chernov's patch set: Standard curses library use eight bit for standout mode, so 8-bit characters displays like highlighted 7-bit characters.
This patch produce library which is fully compatible with all curses programs and add 8-bit chars to all input/display functions. --- I don't think, that any programs wish to use internal curses attribute _STANDOUT directly, in expressions like: addch( ch | _STANDOUT ); Normal interface use standout() and standend() functions instead. Many programs use 'char' type (with sign extention) for input characters and sign extention becomes _STANDOUT mode in this case. So, I refuse this future and allow 8-bit characters for programs, which is designed for 7-bit only ('char' type using instead of 'unsigned char'). --- This small patch fix unpleasant standard curses bug: curses can't expand TAB at all (but tries). A man who wrote this curses misplace SYNC_IN and SYNCH_OUT, this patch exchange macro calls.
This patch useful for standard 7-bit curses too, for this you must delete '_' symbol before waddbytes and apply patch. --- Oh, NO! This curses are really buggy!
This small patch fix following problem: [ assumed scrollok(stdscr, TRUE) ] when addch(ch) at lower right corner of screen, curses are realy gone mad instead if simple scrolling... Curses code assumed that this will be done correctly, but implement it with two bugs.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 17-Aug-1994 |
cgd | new libcurses, from new nvi
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.7.2.2 |
| 17-Aug-1994 |
cgd | clean up import
|
1.7.2.1 |
| 17-Aug-1994 |
cgd | file clrtoeol.c was added on branch netbsd-1-0 on 1994-08-17 21:51:54 +0000
|
1.15.2.1 |
| 05-Aug-2002 |
lukem | Pull up revision 1.16 (requested by jdc in ticket #620): Make sure we always update curx, cury and __ISPASTEOL. From Onno van der Linden in PR lib/16532.
|
1.21.6.4 |
| 04-Feb-2007 |
blymn | Make sure partial multicell characters get cleared Add the row number to debug output
|
1.21.6.3 |
| 25-Jan-2007 |
blymn | * rearrange code to ensure that SET_WCOL() is called after attributes are copied/set.
* fix some instances where attributes were being checked without masking with WA_ATTRIBUTES
* Replace another instance of non-spacing character copying with function call.
|
1.21.6.2 |
| 21-Jan-2007 |
jdc | Apply the changes that add debug "areas" on HEAD to the wcurses branch. Add correspending changes to the debug code that is only present on the branch.
|
1.21.6.1 |
| 21-Jan-2007 |
blymn | Wide curses merge
|
1.25.8.1 |
| 17-Mar-2012 |
bouyer | Pull up following revision(s) (requested by blymn in ticket #121): lib/libcurses/clrtoeol.c: revision 1.26 lib/libcurses/clrtobot.c: revision 1.22 PR/46049: Tim van der Molen: clrtobot() and clrtoeol() do not set background attributes
|
1.25.6.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.26.14.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.28.14.1 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.35.4.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|