You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PDCursesMod/pdcurses
Bill-Gray 027c3a598a
Added assert()s to check various input parameters to core functions
2 months ago
..
README.md All READMEs "converted" to markdown (only trivial changes). 9 years ago
addch.c Updated Unicode zero-width character table to Unicode 15.1.0 (from 14.0.0). 10 months ago
addchstr.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
addstr.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
attr.c Log statement said we'd entered attr_get() when we'd really entered attr_set() (one-byte change). 4 months ago
beep.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
bkgd.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
border.c As described in previous commit 099fa2876c, the PDC_set_box_type() extension was unnecessary and is removed. 7 months ago
clear.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
color.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
debug.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
delch.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
deleteln.c winsertln(), wdeleteln(), and winsdelln() all now use the PDC_wscrl() code from the preceding commit. This also fixes a bug wherein wdeleteln() went to the bottom of the scroll region (win->_bmarg) instead of the bottom of the window (win->_maxy - 1). 8 months ago
getch.c Added test for gettimeofday() availability on FreeBSDs. The existing tests failed when run with clang. 5 months ago
getstr.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
getyx.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
inch.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
inchstr.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
initscr.c Windows can now be allocated and resized to go off the right and bottom edges of the screen, a la ncurses. They still can't go off the left or right edges, though. 4 months ago
inopts.c Added is_cbreak(), is_echo(), is_nl(), is_raw() functions to access members of the non-opaque SCREEN struct. These were added to ncurses on 2023 Aug 12. Also added an 'opaque' test program and a new PDC_VERSION_PATCH #define. 8 months ago
insch.c Added assert()s to check various input parameters to core functions 2 months ago
insstr.c winsnstr() handled up to 513 _bytes_ in the input, instead of the more logical/presumably intended 513 'wchar_t's. Handling of arbitrarily long strings is easily handled with a recursive call (can be tested by dropping MAX_WSTR to lower values). 5 months ago
instr.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
kernel.c DOS 'napping' now rounds to the nearest ~55-ms 'clock tick' (minimum of one tick). The comment in 'kernel.c' said a tick was 50 milliseconds; this error is corrected. 5 months ago
keyname.c Raised KEY_MAX to allow for possible expansion of the list of predefined 'special' keys 1 year ago
mouse.c Partial reversion/fix for commit abbd8f5268 (see discussion for that commit). The redefinition of KEY_OFFSET broke some existing code. Fortunately, the redefinition proved not absolutely essential to fixing the warnings in question. 2 years ago
move.c Fixes to allow -Wextra without causing nuisance warnings to occur. Almost entirely unused parameter suppression. 4 years ago
outopts.c wsetscrreg() required the cursor to be within the designated scroll region. This appears to no longer be necessary. See wmcbrine/PDCurses#165 (and a couple of commits subsequent to this one.) 8 months ago
overlay.c (Mostly) pulled the _firstch/_lastch handling out into separate functions. There was a lot of redundant code here; this is cleaner and, I hope, will lead the way to 'dirty' cells being addressed in a bitmap, rather than by the firstch/lastch approach. 3 years ago
pad.c Tightened some assert() statements. 1 year ago
pairs.txt Added a hash table to speed up find_pair(), alloc_pair(), free_pair(). Updated 'pairs.txt' to explain the added complications (which are, admittedly, getting pretty complicated). 3 years ago
panel.c 'panel.c' : the code to check overlapping panels really should be code to check overlapping _windows_; this may allow re-use of that function. This also enabled the code to be slightly cleaner. 1 year ago
printw.c 'printw.c' fix to avoid potential buffer overflow issues in DOS Digital Mars builds. Follow-up to commit ddf80d010f. 4 months ago
refresh.c Tightened some assert() statements. 1 year ago
scanw.c 'scroll.c', 'scanw.c' copied from wmcbrine. Only changes are in 'man' section : reformatting, updated portability info. 5 years ago
scr_dump.c Some 16-bit compilers lack 64-bit integers. Had to modify underlying code for putwin()/getwin() to accommodate this, by doing the bit arithmetic with two 32-bit ints instead of one 64-bit int. 2 years ago
scroll.c Made a separate PDC_wscrl() function to scroll a window by 'n' lines between rows 'top' and 'bottom'. This can be used by wscrl(), wdeleteln(), winsertln(), and winsdelln(), avoiding some redundant code. See preceding commit for the test program and following commit for the use of this function elsewhere. 8 months ago
slk.c Several minor fixes to comments, and one bit of code re-arrangement for better readability 8 months ago
termattr.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
terminfo.c Comment changes only. In some places, 'PDCurses' was used to refer to PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet. 11 months ago
touch.c Added assert()s to check various input parameters to core functions 2 months ago
util.c If size_t is an unsigned type, then 'n - 4' can underflow. Also added documentation back in for PDC_mbstowcs, PDC_mbtowc, PDC_wcstombs. 4 months ago
window.c Added assert()s to check various input parameters to core functions 2 months ago

README.md

PDCurses Portable Core

This directory contains core PDCurses source code files common to all platforms.

Building

These modules are built by the platform-specific makefiles, in the platform directories.

Distribution Status

The files in this directory are released to the Public Domain.

Acknowledgements

The panel library was originally provided by Warren Tucker wht@n4hgf.mt-park.ga.us