summaryrefslogtreecommitdiff
path: root/lib/libcurses
AgeCommit message (Collapse)Author
2023-06-24Fix typo in comment.msaitoh
2023-05-04Fix spelling of Kurt Shoens surname.uwe
PR misc/57389
2023-04-28Don't set the clear_to_eol variable in doupdate to NULL, this was ablymn
leftover from previous code that makes no sense and makes worms(6) crash randomly. Thanks to kre@ for reporting this.
2023-02-20intro.5: fix typo and grammar and simplify a phrasegutteridge
2023-02-13s/chracter/character/ in documentation.andvar
2022-12-21Add more debug so a call to waddbytes can be traced to the caller.blymn
2022-12-20Backout change to addnstr that broke other applications as n should beblymn
the number of bytes to add - for multibyte characters n will be > 1. Fix __slk_draw to pass in the actual length of the label instead of the default label length because wide characters may make the actual string length longer than the slk display length.
2022-12-12Default the character width to 1 if wcwidth fails.blymn
2022-12-05Revert previous change, it is not correct.blymn
2022-11-30When performing a scroll, check the last line of the region is the sameblymn
on virtscr and curscr because the indexes past are supposed to be one *past* the last matching line (they may actually match if the line is at the bottom of the screen). Iff they don't match reduce the scroll region size by one so we don't scroll non-matching lines, also check if the region is then 0 after the decrement and just return if it was.
2022-11-07Count character widths not number of bytes when calculating numberblymn
of characters to add. Fixes an error detected by slk tests where a label containing wide characters was not correctly printed.
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-10-25Fix for lib/57050blymn
Perform a sanity check on the window parameter being passed and return ERR if it is null. This prevents buggy code crashing.
2022-10-19Fixes for lib/56926 amongst other things:blymn
- 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.
2022-07-06fix various typos in comments.andvar
2022-05-21curses_input.3: wtimeout() returns void toouwe
2022-05-21curses_input.3: timeout() actually returns voidcharlotte
2022-05-19Set the last change pointer after adding a character at the bottom rightblymn
of a window. This fixes the character missing in the LR of a window. Thanks to uwe@ for pointing this out.
2022-05-16curses_input.3: fix argument type for keypad, notimeout, nodelayrillig
There is no type named 'boolf', there's only 'bool'.
2022-05-12Make clrtoeol match the ncurses behaviour where it seems to make theblymn
rest of line foreground. This fixes a display oddity in mutt.
2022-05-05Don't force the refresh, it doesn't really need it.blymn
2022-05-03 * Don't redraw the background if the new background character is theblymn
same as the old one. This prevents excessive redraws in some applications. * Fix bug introduced when wbkgrndset was fixed, we cannot blindly replace any instance of the old background character with the new one because some of those characters were put there by the application leading to display corruption. So flag characters as background when they are erased and only update the flagged characters when setting the background.
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.
2022-04-26Fix for PR 55517.blymn
Actually us x values to recalculate subwin columns.
2022-04-19fix for PR 55496blymn
* Fix bkgrndset so that it actually sets the background character in in line with the SUSv2 specification. * Add an internal function to copy a complex character * Make the previously static celleq function into a libcurses private function so that it can be called in other files.
2022-04-19lib: remove CONSTCOND commentrillig
Since 2021-01-31, lint doesn't need it anymore for the common pattern of 'do ... while (0)'.
2022-04-13Fix build (enabled only for MKDEBUG?)pgoyette
2022-04-12Fix compile breakage when wide char support is disabled.blymn
2022-04-12Make the default colour pair be pair 0 which appears to match otherblymn
curses implementations.
2022-04-10fix various typos in comments and output/log messages.andvar
2022-04-08s/postion/position/andvar
2022-04-08fix various typos, mainly in comments, but also log messages, docs, game text.andvar
2022-03-26__makenew: use calloc to get zeroed memory for window contents.uwe
PR lib/56767.
2022-01-25Correct (hopefully) the handling of wide characters.blymn
* 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.
2022-01-16libcurses: remove unreachable statementsrillig
Found by lint. No binary change.
2022-01-06Revert change for array definition, it was incorrect, thanks Uwe.blymn
2022-01-06Properly size and array to hold the larget return from wctomb.blymn
2022-01-01s/implemenation/implementation/ in comment.msaitoh
2021-12-17curses: spell "foreground" correctly in commentsuwe
2021-12-08fix various typos in comments and log messages.andvar
2021-12-03fix various typos in comments, log messages and documentation.andvar
2021-11-22Don't waste time setting the dirty flag multiple times.blymn
2021-11-16Move 'i' into DEBUG only code (now there be three).kre
Hopefully unbreaks !DEBUG builds.
2021-11-16Fix handling of the tab special character.blymn
2021-11-15Fix for PR lib/55433blymn
Correct the behaviour for ins_wstr: * Properly check the string will fit by processing any special characters present when preforming the check. * Simplify the routine by removing code that duplicates the code in _cursesi_addwchar and just call _cursesi_addwchar.
2021-10-19Add a bit more debug.blymn
2021-10-19Fix for PR pkg/55931blymn
Don't move the cursor when getch is called if input is not going to be echoed. Lynx uses the cursor to mark the current selection in a pop-up, previously the cursor was being relocated when getch was called which broke the Lynx item marking.
2021-10-04remove duplicate the article in documentation.andvar
2021-09-07Do not compile in whole fileio.c for LIBHACK.rin
Fix build failure when built as libhack, due to missing fileio.h. IMO, this should be cleaner than generating fileio.h for {get,put}win(3), that are useless for install media.
2021-09-07PR lib/56388rin
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.