ex, nofollow'/>
summaryrefslogtreecommitdiff
path: root/lib/libcurses/move.c
AgeCommit message (Collapse)Author
2022-11-04PR bin/57072blymn
This fixes observed behviour in the PR. Allow the cursor to be moved one past the EOL, if postitioned here then set ISPASTEOL. also protect out of range access if win->cury is past maxy.
2022-04-27Fix for PR 56243blymn
clear the past EOL flags when moving the cursor - they are no longer valid as move cannot put the cursor past the EOL.
2021-10-19Add a bit more debug.blymn
2021-09-06Expand __CTRACE() to __nothing #ifndef DEBUG.rin
Remove most of #ifdef DEBUG around __CTRACE() calls. No binary changes, except for line numbers for assert().
2019-06-09Rework previous fix for getch cursor position when cursor is movedblymn
without refresh. If the window is not dirty but the window cursor position does not match curscr then move the cursor. This fixes the issues seen in PR lib/54263.
2019-05-20Back out incorrect fix for PR 53617 and fix it in a different way.blymn
Keep track of the cursor location, if getch is called without a refresh and without pending updates (dirty windows) then move the cursor to the correct location directly. Doing this prevents unnecessary refreshes.
2018-09-26According to POSIX moving the cursor in curses(3) touches the windowkamil
Mark the old and new lines as dirty, so they will be refreshed upon next call to getch(3)-like routine. This also matches the ncurses behavior. Reviewed by <roy>
2017-01-06KNF.roy
Normalise coding style. White space police. Sprinkle some extra braces to make the flow more clear. No functional changes.
2010-02-23misc fixes and improvements:drochner
-call setlocale(LC_CTYPE, "") before nl_langinfo(CODESET) if the locale settings is (still) at "C" - otherwise the CODESET doesn't work -fix the type of the WACS_* symbols -- this needs to be cchar_t* -add safeguards where the return value of wcwidth() is used for loop counters or indexing -- it can be -1 -use more common code in the widechar support case -- in particular let the wchar functions do the work even if chtype ones were called -implement wcursyncup/wsyncup/wsyncdown -somewhat experimental: allow ACS_* variables to refer to WACS_* table entries -- this way, programs using the old chtype using API can use UTF8 line drawing on terminals which support UTF8 but not ACS switching -fix some logics bugs in UTF8 recognition and ALTCHARSET handling
2009-07-22Prepare curses for the possibility of changing from termcap to terminfo.roy
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.
2007-01-21Add debug "areas" that allow selective debugging by setting thejdc
"CURSES_TRACE_MASK" environment variable. Postive vales include debug areas, negative values exclude them.
2003-08-10Revert most of rev 1.27 of addbytes.c and associated changes.dsl
Posix requires that adding '\n' does clrtoeol() and 'x = 0'. (Making "\r\n" erase the text that has just been displayed.) Remove __NONL test from addbytes, __NONL is a property of the output device.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-07-31Do something more sensible for waddbytes(..., "\r\n", ...);dsl
I'm not sure about the clrtoeol() at all though - maybe it should be done as part of scroll()? Leave 'x' alone when __NONL set.