Commit Graph

  • c28a000172 Fix README for SDL2 renderer Julius Ikkala 2023-02-25 16:50:37 +0200
  • 1110283bd5 Move sdl2ren over sdl2 Julius Ikkala 2023-02-25 12:17:00 +0200
  • 3f3e588e30 Use SDL2 renderer successfully Julius Ikkala 2023-02-25 02:28:49 +0200
  • 8029bd6e42 Start working on SDL_Renderer backend Julius Ikkala 2023-02-25 01:00:19 +0200
  • 6e0d48229d
    [Fix]: transparent background is now possible in ANSI mode too. Mioki 2023-02-12 23:22:03 -0800
  • 5382d3e474 newterm allow to set input stream okbob@github.com 2023-02-07 12:01:34 +0100
  • 46823fbac2
    Duplicate buffer size in case all chars are double unit UTF-16 such as emojis. Mioki 2023-02-02 23:00:13 -0800
  • 222bae6d87
    Add full Unicode support to non-ansi consoles. Correct detection of Windows Terminal. Mioki 2023-02-02 22:34:19 -0800
  • ee3f16a4e7
    Switch to windows-2022 runner (#277) Ross Smith II 2023-01-29 17:52:55 -0800
  • 3a73630b08
    Check for input redirection could have accessed a NULL pointer if we tried to check for keys during PDC_scr_open(). We do that in DOS and Windows. Bill-Gray 2023-01-29 20:39:57 -0500
  • bacb813150
    Switch to windows-2022 runner Ross Smith II 2023-01-29 08:20:20 -0800
  • e828471f04
    [FIX]: key modifiers were cleared without a key event. Mioki 2023-01-25 16:29:38 -0800
  • 7e28f97cf1
    Adds support for unicode codepoints entries above 0xFFFF such as emojis and other extended symbols. Mioki 2023-01-25 15:31:37 -0800
  • 6c501d627b
    Provides full unicode output for wincon Mioki 2023-01-25 13:17:30 -0800
  • 7f1e1bba34
    In Windows SDL2, Alt-keystrokes were ignored; reported as wmcbrine/PDCurses#142. Hat tip to Benjamin Adamson for proposed fix (modified here). Bill-Gray 2023-01-16 13:23:58 -0500
  • c74dfa2b89
    Updated PDC_VER_DAY, brought HISTORY.md up to date Bill-Gray 2023-01-09 10:02:49 -0500
  • c6c7f2d074
    Negative window sizes should result in newwin(), wresize(), and similar functions returning ERR. Instead, they segfaulted. Raised as part of issue #266. Bill-Gray 2023-01-09 10:00:28 -0500
  • 0ed72b9f91
    If you resize 'ptest', it shouldn't advance to the next panel display in the series. Fixes a piece of issue #252. The remaining bit, in which the touching of panels goes unnoticed, remains to be fixed. Bill-Gray 2023-01-07 14:56:38 -0500
  • cb6365d2d7
    Merge branch 'master' of https://www.github.com/Bill-Gray/PDCursesMod SDL2 now supports the Supplemental Multilingual Planes (SMP, Unicode beyond 0xffff) for SDL 2.0.18 and beyond. Bill-Gray 2023-01-07 11:14:43 -0500
  • 602bc380f8
    Enable full Unicode range in SDL2 port (#270) Julius Ikkala 2023-01-07 18:14:32 +0200
  • b3713e8f65 Clean up SDL2 glyph rendering code Julius Ikkala 2023-01-07 13:45:26 +0200
  • 8b4ec2d269 Update SDL2 port README Julius Ikkala 2023-01-07 13:44:09 +0200
  • 3b975e75f3 Try to fix Visual Studio builds with new SDL_ttf Julius Ikkala 2023-01-07 12:11:29 +0200
  • 44416257d0
    VT : the window sizing handler ought to be set to use the terminal file handle. That may be STDOUT_FILENO (if stdout hasn't been redirected to a file) or STDERR_FILENO (if stdout got redirected). See preceding commit a6618d94d7. Bill-Gray 2023-01-06 21:25:09 -0500
  • a6618d94d7
    VT : made the pointer to the terminal (usually stdout; stderr if stdout has been redirected) accessible via the new PDC_get_terminal_fd( ) function. This needs to be accessible so that the resizing handler is set to that file (see next commit). Bill-Gray 2023-01-06 21:23:26 -0500
  • 1917dcdaa1
    MSVC points out that strlen() returns a size_t that should (if you're a pedant) be cast to int. Bill-Gray 2023-01-06 21:21:23 -0500
  • 72521a1697
    Scrolling was broken ever since we switched from line-by-line allocation for windows to allocating all lines at once. The existing code rearraged line pointers, so that win->_y[0] was no longer the pointer that ought to be freed. Solution was to scroll without rearranging line pointers. Bill-Gray 2023-01-06 20:56:57 -0500
  • 9d1a7338b0
    subwin() made the subwindow one row/line too small when fed nlines=0 or ncols=0. Fix for issue #265. Bill-Gray 2023-01-06 12:09:13 -0500
  • ddb2ae4bc9
    Merge pull request #269 from pavkam/export-slk_attr Bill Gray 2023-01-06 12:01:50 -0500
  • cdb6d1bb70 Undo small unnecessary change Julius Ikkala 2023-01-06 19:00:15 +0200
  • 6da5d21c99 Adjust dependencies and allow older SDL2-ttf versions Julius Ikkala 2023-01-06 18:51:57 +0200
  • cff6d3c165
    Changes to 'mbrot' resulted in a declaration of 'int i;' hiding a previous declaration. Hat tip to MSVC; gcc didn't warn me about it. Bill-Gray 2023-01-06 11:23:19 -0500
  • 287a53fca9
    wgetn_wstr() ought to get characters using wget_wch(), not wgetch(). The latter (ought to, soon will) return multi-byte sequences, rather than the Unicode points that are desired in this function. Bill-Gray 2023-01-06 11:22:07 -0500
  • 4257ecdb63
    Merge pull request #268 from juliusikkala/fix-mbtowc Bill Gray 2023-01-06 11:17:16 -0500
  • 4467030208 Enabled full Unicode range in SDL2 Julius Ikkala 2023-01-06 15:41:47 +0200
  • 7d9da499de
    fix: added export slk_attr() to curses.h Alexandru Ciobanu 2023-01-06 13:58:14 +0000
  • ad7cd29a23 Fixed PDC_mbtowc with 4-byte code points Julius Ikkala 2023-01-06 15:36:43 +0200
  • 6925d0f571
    VT window resize handler used STDIN_FILENO. Pavel Stehule (see issue #256) pointed out that it should use STDOUT_FILENO. Bill-Gray 2023-01-05 21:27:07 -0500
  • 3abeedcbcd
    'mbrot' now can accept a command line argument '-i(input filename)' to test the ability to redirect input in newterm() (see preceding commit) for the fix to issue #256. Bill-Gray 2023-01-05 21:22:24 -0500
  • 72a9009e8a
    We now look at the input file parameter for newterm() and use it (only in the VT platform at present). A partial fix for issue #256. If this works, we can extend it to the other platforms. Bill-Gray 2023-01-05 21:18:59 -0500
  • 8fb882b97d
    'mbrot' demo revised to be able to use non-special keys, and to use newterm() instead of initscr(). Bill-Gray 2023-01-05 20:49:03 -0500
  • 07308284b8
    The statically declared _keyname[] buffer predated KEY_PRINTSCREEN, which ran one byte over the end of the buffer. Bill-Gray 2023-01-04 21:58:56 -0500
  • 18cd859438
    SLK functions lacked 'man' documentation for extended_slk_color. Also, the return value for slk_attr() for the error case was wrong and caused casting warnings on MSVC. There is no really sensible return value here (and the debug behavior of asserting an error is correct). But A_REVERSE comes closest to a 'good' value to return. Bill-Gray 2023-01-04 21:56:21 -0500
  • 2cdf10293f
    WinCon errored out if you defined both PDC_FORCE_UTF8 and PDC_WIDE. Should be able to do 'em both, though it's redundant. Bill-Gray 2023-01-04 21:53:05 -0500
  • 7c63d4674d
    SDL2 didn't have a dependency for terminfo.h on term.h. A piece that slipped through commits 248146021e, ab1c007273 (re-implementing terminfo functions). Bill-Gray 2023-01-04 21:50:41 -0500
  • ad8449a2a1
    Merge pull request #263 from clangen/clangen/dpi-aware Bill Gray 2023-01-01 13:18:13 -0500
  • 012e3d90f8 Port #45, #83 to current master branch. casey langen 2022-12-29 12:48:40 -0800
  • 248146021e
    'terminfo' fully restored (I think). Continuation of commit ab1c007273, which is itself a reversion of commit 22c4d82f8c. A fix for issue #253. Bill-Gray 2022-12-28 22:55:08 -0500
  • bc340c0d20
    WinGUI version of 'PDC_check_key()' got confused with out-of-order messages such as window resizes (issue #257). This reverts to our previous practice of calling PDC_napms(1 millisecond). However, we need not 'nap' every time; once every hundred calls is sufficient to ensure keys are read, while not limiting us to 1000 keys/second. Bill-Gray 2022-12-28 21:34:36 -0500
  • d133f8e80e
    Merge pull request #261 from rexx-org/master Bill Gray 2022-12-28 21:16:11 -0500
  • 54591466f5
    Merge branch 'Bill-Gray:master' into master Mark Hessling 2022-12-29 11:15:27 +1000
  • 7055afaaa6 Be consistent with booleans; CentOS 7.9 does not support true with current tests Mark Hessling 2022-12-29 11:14:32 +1000
  • d23bdae024 If _UNICODE is defined, WM_CHAR messages receive UTF16 characters; in this case, we'll convert them to a UTF8 byte sequence and enqueue the characters individually. casey langen 2022-12-26 17:26:45 -0800
  • 23eeca5500
    Merge pull request #259 from rexx-org/master Bill Gray 2022-12-26 14:25:23 -0500
  • 5246eca97b Merge branch 'master' of github.com:rexx-org/PDCursesMod Mark Hessling 2022-12-26 12:41:23 +1000
  • 89b2287d66 Enable user handling of window close in X11 port using PDC_set_function_key() Mark Hessling 2022-12-26 12:40:57 +1000
  • d1c4dbec57
    Merge pull request #258 from rexx-org/master Simon Sobisch 2022-12-26 01:12:40 +0100
  • 791318dfaa Enable user trapping of windows close on SDLa and SDL2 Mark Hessling 2022-12-26 06:35:09 +1000
  • 6eeef909e8
    Reversion of commit b94c554977 : when running WinGUI under Wine, attempts to resize the window to the exact number of columns and rows will fail. So we check to see if we're running under Wine; if we are, we skip those resizes. Bill-Gray 2022-12-24 21:17:38 -0500
  • 65939aaccd
    VT flavor now allows for redirection of stdout, with some caveats : it manages this by sending output to stderr, so if you redirect stderr in Windows, or both stdout and stderr in Linux or MacOS, it'll still fail. Motivated by issue #256, which is about input (so this doesn't actually address that issue.) Bill-Gray 2022-12-24 15:55:29 -0500
  • 570aa79949
    'initscr.c' : more explicit casts and minor changes to allow C++ compilation Bill-Gray 2022-12-20 16:17:36 -0500
  • a10049258f
    Advanced PDC_VER_MONTH, PDC_VER_DAY constants Bill-Gray 2022-12-15 17:20:12 -0500
  • ab1c007273
    We partially 'restored' terminfo functions with commit 22c4d82f, but it was a very partial restoration : terminfo.c was not actually compiled/linked into the library on most platforms. Reported by Pavel Stehule, issue #253. Bill-Gray 2022-12-15 17:19:22 -0500
  • b990599e2f
    add Simon Sobisch 2022-12-15 23:17:11 +0100
  • 723e6e4f52
    Some progress in use of a 'configure' option with OpenWATCOM in DOS. Long file names cause trouble. Bill-Gray 2022-12-15 16:53:43 -0500
  • 19b3b15b7f
    WinCon, WinGUI makefiles used optimization switch -O4, to which clang objects (see first part of issue #250). gcc silently remaps this to -O3. As far as I know, nothing has a working -O4 switch, so let's change the fours to threes. Bill-Gray 2022-11-29 13:41:37 -0500
  • a3304aa668
    See @GitMensch comment on commit 9c0f475287 : on at least some Windows platforms, the '.exe' must be explicitly added to get 'config_curses.exe' to run. I can think of no platforms where it is likely to cause trouble, so let's just always use it. Bill-Gray 2022-11-29 13:17:17 -0500
  • 4038be0f9a
    MSVC warned about PDC_set_window_resized_callback() being declared without an explicit prototype. I am reasonably sure this is the same warning described in issue #250 with clang on Windows. Bill-Gray 2022-11-29 13:10:35 -0500
  • 3bcd459745
    'getch.c' : some casts made explicit, and PDC_millisecs declared to take 'void' (which it should have done from the beginning; see issue #250) Bill-Gray 2022-11-29 12:46:28 -0500
  • d3f6fe63ba
    Updated version constants and HISTORY.md for v4.3.5 v4.3.5 Bill-Gray 2022-11-28 22:01:06 -0500
  • c21d80ee11
    Brought HISTORY.md, MANUAL.md up to date Bill-Gray 2022-11-18 11:29:03 -0500
  • 9c0f475287
    In WinGUI, WinCon, and VT, one can run 'make configure (options)' to revise 'curses.h' to use the specified options for shared library, 32-bit chtypes, wide/UTF8/narrow builds, and/or ncurses-compatible mouse calls. See commit fe39e244d2. Bill-Gray 2022-11-18 11:26:21 -0500
  • 7bb822b2a4
    Remaining ncurses extensions for opaque WINDOW structs. See https://github.com/wmcbrine/PDCurses/pull/106 and the preceding commit. Markus Uhlin 2022-11-18 11:18:02 -0500
  • 22fecc1cf6
    Some ncurses extensions for opaque WINDOW structs. See https://github.com/wmcbrine/PDCurses/pull/106. More commits to come for the remaining functions. Markus Uhlin 2022-11-18 10:38:14 -0500
  • 8d40c3a9b1
    Starting changes to allow code to be compiled with g++. Casts are explicit where they were implicit; 'new_win' is used in place of 'new' (which is arguably more descriptive anyway) Bill-Gray 2022-11-18 10:19:25 -0500
  • fe39e244d2
    Initial 'config_curses.c' to allow one to reset DLL, chtype size, 8-bit/UTF-8/wide-character, and other settings. See issue #133 and the discussion starting at 'a bit of code to configure/reconfigure'. Bill-Gray 2022-11-09 10:41:14 -0500
  • 2edf7d14bf
    DRM port should use 'pitch' variable to determine bytes/line, instead of assuming it's width*sizeof(uint32_t). Found systems where the latter is wrong. Bill-Gray 2022-11-06 14:59:42 -0500
  • 407c0bdc80
    Some pedantic compilers object to use of char * (instead of const char *) for embedded strings. Bill-Gray 2022-11-06 13:15:55 -0500
  • afeab36e97
    Updated version constants and history Bill-Gray 2022-11-04 23:10:04 -0400
  • 03eb51cefc
    In SDLn, ignore mouse events outside the actual PDCurses part of the screen. Fixes wmcbrine/PDCurses#138. Bill-Gray 2022-11-04 11:12:04 -0400
  • 7dffd2e0b6
    'calendar' modified to work with negative years. Only of use to historians and astronomers, of course. Bill-Gray 2022-10-30 15:18:02 -0400
  • d5a34f95e0
    Ugh. Mangled the comments... why did that work when I compiled it? (GitHub build failed.) Bill-Gray 2022-10-22 12:43:25 -0400
  • 118dc119a2
    Added slk_attr(), an ncurses extension, and made PDC_VER constants current. Bill-Gray 2022-10-22 12:36:44 -0400
  • d0538e916a
    Update config.guess and config.sub. William McBrine 2022-10-20 00:01:01 -0400
  • e64a817b2c
    XCurses: Make sure the window can be focused Sets the WM_TAKE_FOCUS procotol and the WM_HINTS input field Bitterly Ironic 2022-10-19 13:49:08 -0400
  • 1b20c793df
    Resizing of the window list should occur both when windows are added _and_ when they are removed. The memory savings are tiny from this; the main benefit is that it ensures that window_list is freed when the list becomes empty, in a more logical manner than would otherwise occur. Bill-Gray 2022-10-09 13:37:34 -0400
  • 208a2d4204
    Modified 'ptest' and 'speed' demos to ensure all memory is freed. The code _did_ work without those changes, but relied on the OS to free everything at shutdown. That's annoying when testing with Valgrind. Bill-Gray 2022-10-09 13:16:46 -0400
  • e86d9c3568
    WinCon : returned key code should be non-negative (unless it's ERR). This is consistent with ncurses and every other PDCurses/PDCursesMod platform. Bill-Gray 2022-10-01 10:00:36 -0400
  • e54d03fc80
    WinCon: on some compiles (MinGW, at minimum), compiling with UTF8=Y did _not_ automatically force WIDE=Y. Bill-Gray 2022-09-29 12:57:32 -0400
  • 13c6914650
    Merge pull request #244 from Bill-Gray/GitMensch-getch-performance Bill Gray 2022-09-28 11:43:59 -0400
  • 6ac5d93156
    Added comment to 'test_pan' for those not using UTF-8 editors, plus a 'random repositioning' feature for panels. Moving with the keyboard can be a little slow. Bill-Gray 2022-09-28 10:52:20 -0400
  • 99e7d8b1f2
    Some ncurses demos (tclock, for example) require HAVE_MATH_FUNCS to be defined to 1. Bill-Gray 2022-09-28 10:48:56 -0400
  • f8d1059f20
    Brought version date and HISTORY.md up to date Bill-Gray 2022-09-28 10:48:18 -0400
  • e00e33650b
    AltCharSet display was broken in DOSVGA 8-bit character builds, as reported at https://github.com/NetHack/NetHack/pull/881 Bill-Gray 2022-09-28 10:33:30 -0400
  • aaef36c1bc
    Merge pull request #247 from chasonr/wgetnstr-wide Bill Gray 2022-09-28 09:40:09 -0400
  • 54bc1a16fb Fix wgetnstr with PDC_WIDE Ray Chason 2022-09-27 22:46:41 -0400
  • 5b624ccc2e
    Removed a meaningless assert. I think the intent was to say 'if PDC_WIDE isn't defined, the character _must_ fit in eight bits; assert if it doesn't.' But as implemented, the assert doesn't do a censored thing. Bill-Gray 2022-09-10 21:59:08 -0400
  • ec28f9b1d1
    minor performance for getch Simon Sobisch 2022-09-10 17:41:03 +0200
  • 080cca428c
    Merge branch 'master' of https://www.github.com/Bill-Gray/PDCursesMod Bill-Gray 2022-09-10 11:18:31 -0400
  • 8be7b8760a
    _default_background_idx and _default_foreground_idx are (again) static to pdcurses/color.c, rather than part of the 'opaque' structure in SCREEN. You could get problems if you tried to set background/foreground colors before the 'opaque' struct was allocated... getting around it would have been a pointless hairball, so the code is reverted. Bill-Gray 2022-09-10 11:17:18 -0400