Commit Graph

  • 41ba838c81
    Merge 840f465642 into 94c4b4ba00 Simon Sobisch 2025-10-03 12:47:58 -0400
  • 94c4b4ba00
    Merge pull request #349 from jordan-hemming/wincon-mousewheel master Bill Gray 2025-09-26 10:53:55 -0400
  • 93dba3adf6 Fixed apparent typo preventing mouse wheel working with wincon. Changed HOUSE_WHEELED and HOUSE_HWHEELED to MOUSE_WHEELED and MOUSE_HWHEELED. Jordan Hemming 2025-09-26 11:24:59 +0100
  • c4cf73fab5
    Version constants and HISTORY.md updated Bill-Gray 2025-09-09 15:04:03 -0400
  • 21c52a843c
    WinGUI/pdcdisp.c modified to avoid undefined MAX_UNICODE errors when compiling for 8-bit character sets Bill-Gray 2025-09-09 15:00:06 -0400
  • 82e7a93542
    VT/pdcdisp.c modified to compile in non-wide builds (where MAX_UNICODE is not #defined). Removed a no-longer-needed check for dummy characters when drawing text in PDC_transform_line(). Bill-Gray 2025-09-09 14:51:34 -0400
  • ce36fca4ed
    Digital Mars(R) makefile for VT modified, mostly cosmetically, to align with similar makefiles for the DOS and DOSVGA platforms. This also means the 'tests' are now built, and a meaningless dependency on the advapi32.lib library was removed. Bill-Gray 2025-09-09 14:50:01 -0400
  • 2469b98449
    Fixed typos in dos/Makefile.dmc and dosvga/Makefile.dmc Bill-Gray 2025-09-09 14:29:21 -0400
  • 75da2de072
    'dosutil.c' misbehaved for negative arguments. Also fixed a timing error of (theoretically) one part in 250 million, and added explanations. Bill-Gray 2025-09-09 12:27:01 -0400
  • 677ec0c9da
    'naptest.c' revised so that it can be compiled with a wider range of compilers (it previously had some Digital Mars specific bits in it). Bill-Gray 2025-09-09 12:11:38 -0400
  • 17ed738a86
    'ins_del.c' test code failed to compile in NDEBUG mode, because 'rval' became an unused variable Bill-Gray 2025-09-09 11:44:31 -0400
  • e00930e1c6
    PC_wc_to_utf8() should be declared for export (for use when dynamically linked). 'show_uni' needs to reflect that declaration, and needed a workaround for cases where it's built with 8-bit characters. Bill-Gray 2025-09-09 11:42:53 -0400
  • 9f9819fe8d
    WinGUI didn't consistently reset 'key_modifiers' (state of Ctrl, Alt, Shift) back to zero when a key went up. This meant that Ctrl+key would cause mouse clicks to have Ctrl set (until another Ctrl-less key was hit). Bill-Gray 2025-09-09 11:06:23 -0400
  • 80c64293a5
    Framebuffer README.md updated to mention Unifont use for wide-character builds, and some discussion of fullwidth characters. Bill-Gray 2025-08-31 20:38:50 -0400
  • ae9bdd0c88
    'testcurs' color cube and gradient demos shouldn't be used unless we have enough color pairs. Renamed the former demo from 'extended()' to 'show_color_cube()'. Bill-Gray 2025-08-31 17:06:28 -0400
  • 2b0718060e
    'restart' demo has problems in WinGUI : the 'getchar()' call returns immediately. Added a one-second pause. Bill-Gray 2025-08-31 17:04:36 -0400
  • b8f822040e
    GL port : the resizing mode can be set via the PDC_RESIZE environment variable Bill-Gray 2025-08-31 17:01:15 -0400
  • d0c2ef2953
    Added 'show_uni' (show Unicode data) test program Bill-Gray 2025-08-31 16:27:20 -0400
  • f0441e4d31
    Improved comments in three files. Noted that our return value for the *printw() functions is nonstandard. Bill-Gray 2025-08-31 16:26:15 -0400
  • fb59e1b28d
    Borland C warned that 'i' is needlessly initialized. (A warning no other compiler appears to detect!) Bill-Gray 2025-08-31 16:20:49 -0400
  • e215a6d4b5
    Defining CHTYPE_16=Y results in 16-bit chtypes. Suitable for DOS and very memory-restricted situations. Bill-Gray 2025-08-31 16:17:29 -0400
  • bc3b4d8449
    Through a hack, PSF2 font files can now express fullwidth characters, and the framebuffer/DRM port can display them. See comments in 'hex2psf2.c' in the 'junk' repository for an explanation. (Basically, PSF fonts normally store only one font width; therefore, we now break fullwidth glyphs into 'left' and 'right' halves.) Bill-Gray 2025-08-31 15:45:21 -0400
  • 43cc1e414a
    FreeBSD lacks 'linux/input.h', and appears not to need it (code compiles Just Fine without it) Bill-Gray 2025-08-31 15:42:17 -0400
  • 890ff7edd7
    Reversion of commit 7d0763d029. I'm at a loss to explain that commit; it appears to undo a perfectly good fix for no good reason? Bill-Gray 2025-08-31 15:41:33 -0400
  • 897754a874
    Merge e30b2b7c2c into 7906c61500 Simon Sobisch 2025-08-14 19:52:14 +0200
  • 8d5fc43596
    Merge af828339d9 into 7906c61500 Simon Sobisch 2025-08-14 19:51:22 +0200
  • 840f465642
    use POSIX feature macro do check for clock_gettime posix-feature Simon Sobisch 2025-08-13 09:21:54 +0200
  • 7906c61500
    updated conditionals for use of time functions in getch.c Simon Sobisch 2025-08-11 19:54:58 +0200
  • 3b88e03bca
    Updated HISTORY.md and version constants for version 4.5.3. v4.5.3 clocks Bill-Gray 2025-08-10 19:00:53 -0400
  • 5da753b5ae
    WinGUI : fixed typos in Digital Mars makefile and allowed for adding of compiler flags Bill-Gray 2025-08-10 18:55:26 -0400
  • b56ea997e7
    The fixes for casting a function pointer used in commits 7309a03c81 and ce60aa6608 don't work on really old Microsoft Visual C (5.0, possibly others) Bill-Gray 2025-08-10 18:54:27 -0400
  • 5bd5a1d535
    Older compilers may lack MOUSE_WHEELED and/or MOUSE_HWHEELED Bill-Gray 2025-08-10 18:52:19 -0400
  • 1de3e4d6b4
    Older MSVC (version 5.0) lacks _beginthread() Bill-Gray 2025-08-10 18:51:42 -0400
  • 2b48f9541e
    Fixed some arguably pedantic cast warnings from Microsoft Visual C 5.0 (not a typo!) Bill-Gray 2025-08-10 18:50:32 -0400
  • f381244bf5
    Better check in test programs for HAVE_SNPRINTF. Bill-Gray 2025-08-10 18:47:05 -0400
  • 8fbb3a64ea
    'testcurs' modified to allow testing of stdio redirection. Bill-Gray 2025-08-10 15:02:01 -0400
  • 6855b3247f
    Merge pull request #344 from rhaberkorn/wincon-redirection : stdio redirects in WinCon Bill Gray 2025-08-10 14:56:08 -0400
  • aea6b633b7
    Extracted the logic for deciphering combined characters in vt/pdcdisp.c. That same logic may be used in other platforms, and shouldn't be duplicated in each of them. Bill-Gray 2025-08-09 23:11:19 -0400
  • 4682321794
    On platforms where sizeof( int) == 2, PACK_RGB could fail to suitably promote values to 32 bits. Bill-Gray 2025-08-09 23:04:55 -0400
  • ef1c401550
    Updated HISTORY.md Bill-Gray 2025-08-09 22:51:44 -0400
  • 20160b07e0
    INT_MAX is not defined if 'limits.h' isn't included. This would in turn cause PDC_COLOR_BITS to be mis-set. Bill-Gray 2025-08-09 22:50:06 -0400
  • 0baaa34d0e
    'widetest.c' : to determine if combining characters are used (i.e., wchar_t is two bytes), we should test WCHAR_MAX. Instead, I assumed that only Microsoft Windows would have that peculiarity. Issue #340 pointed out (among other things) that at least one MS-DOS compiler (djgpp) also assumes a two-byte wchar_t. Bill-Gray 2025-08-09 21:19:01 -0400
  • 8eee506d77 WinCon/pdcscrn.c: support stdio redirections Robin Haberkorn 2025-08-09 20:13:25 +0300
  • 803d92f5f0
    Merge pull request #343 from pavkam/master Simon Sobisch 2025-08-05 17:13:06 +0200
  • 83361c6486
    chore: try to fix warning on VS 2022 Alexandru Ciobanu 2025-08-05 14:02:27 +0100
  • fdd95ca370
    VT port in DOS with Digital Mars compiler : workaround for duplicate getch()es Bill-Gray 2025-07-18 22:16:56 -0400
  • 4e23068f85
    VT port in DOS : certain escape sequences (to store/restore the screen, to set the cursor mode, and to set the mouse mode) just produce garbage in DOS. DIVROUND assumes 32-bit arguments; when compiled with 16-bit integers, overflow happened. Bill-Gray 2025-07-18 21:34:25 -0400
  • 2006f0a085
    VT port : in DOS, if you write to the character cell at bottom right, you scroll. Bill-Gray 2025-07-18 21:22:35 -0400
  • 1994189705
    VT port : can't turn cursor on/off in DOS (well, not with escape sequences, anyway) Bill-Gray 2025-07-18 21:19:16 -0400
  • bb1f6e4bc9
    COLORS and COLOR_PAIRS are integers. So if sizeof( int) == 2, we can't have 20 bits for colors. (The only configuration where this appears to be possible is with OpenWATCOM. The Digital Mars compiler supports 16-bit code, but not 64-bit integers.) Bill-Gray 2025-07-18 21:18:18 -0400
  • 4a5e8e2605
    Changed some references to PDCurses to PDCursesMod (situations where the behaviors really are different between the two forks) Bill-Gray 2025-07-17 14:23:32 -0400
  • 277765ecdc
    VT port : in DOS, we should use the 'common/dosutil.c' functions for beeping and napping. Bill-Gray 2025-07-17 14:21:57 -0400
  • 6ab0a9b1a5
    VT port : in DOS, certain command sequences have no effect (except to pollute the screen) and should be omitted. Bill-Gray 2025-07-17 14:21:37 -0400
  • dd7a0a89f0
    VT port : in DOS, we should assume 8-bit characters without Unicode. Bill-Gray 2025-07-17 14:21:02 -0400
  • f0038eb5d9
    'testcurs' need not call wcslen(). Makes code more sensible and fixes issue #340 (failure to compile with djgpp, which oddly lacks wcslen().) Bill-Gray 2025-07-17 14:20:19 -0400
  • 0d389ce086
    Merge 3113ea90cf into 7309a03c81 Julius Ikkala 2025-07-17 11:15:21 +0200
  • 7309a03c81
    wingui/pdcscrn.c: fix dpi_aware_func_t Simon Sobisch 2025-07-15 22:57:02 +0200
  • e6be02c3cc
    Updated HISTORY.md and version date/month constants Bill-Gray 2025-07-15 14:13:54 -0400
  • 04a5f1de93
    Framebuffer/DRM ports do a better job of keeping track of shift/ctrl/alt states for mouse buttons and for key presses. For the latter, we should be able to add NumLock/CapsLock flags using ioctl( STDOUT_FILENO, KDGKBLED, &flags); and checking bits set in 'flags'. Bill-Gray 2025-07-15 13:27:39 -0400
  • ed540836cc
    DRM port assumed the video card would be available as /dev/dri/card0. On my laptop, it's /dev/dri/card1, and still more configurations are possible. It may prove necessary to do a 'proper' search for the default video card (usually assumed to be the one used when booting). Bill-Gray 2025-07-15 13:23:36 -0400
  • c48596383c
    The IS_*_SURROGATE macros were defined in multiple places; now, they're defined only in curspriv.h. Seems Microsoft has added their own versions of these; we protect against that now (shouldn't actually be a problem, except in the very oddball configuration described in issue #339) Bill-Gray 2025-07-15 13:18:11 -0400
  • efdf6db771
    'event_counts' shadowed a previous instance. Pointed out by Gisle Vanem in issue #339. This triggered a warning in Microsoft(R) Visual C, which should have been an error; added -WX flags. Had it been an error, this wouldn't have slipped by. Bill-Gray 2025-07-15 13:14:10 -0400
  • 8f73eb0c1b
    Made initial use of the debug flags. These _could_ be used for more finely-tuned debug output, a la ncurses. Bill-Gray 2025-07-15 12:58:35 -0400
  • 5135bee14b
    Assorted documentation changes in code, READMEs, and HISTORY.md Bill-Gray 2025-07-04 16:59:02 -0400
  • 7d0763d029
    Follow-up to commits 436f1c3e8e, 45e3722c03 : 'a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]' Bill-Gray 2025-07-03 22:20:42 -0400
  • 8fa70cf2e0
    Updated 'general' README.md to mention new OS/2 GUI port, x11new, and DRM (Direct Rendering Manager) ports. Bill-Gray 2025-07-03 22:18:50 -0400
  • 11d6385ba9
    x11new : underlines, strikeouts, and 'top' lines went one pixel too far to the right Bill-Gray 2025-07-03 22:17:43 -0400
  • d47d19ca07
    _unlink() isn't defined in OpenWATCOM. Actually, it appears to be (unsurprisingly) basically only a Microsoft® compiler thing. Bill-Gray 2025-06-28 13:27:40 -0400
  • b4eecae2c2
    Added parens in documentation for clarity Bill-Gray 2025-06-28 13:25:26 -0400
  • 2728d46838
    Framebuffer/DRM ports : if the mouse is used, Alt/Shift/Ctrl modifiers will be returned. Also fixed a problem with the use of PATH_MAX, a somewhat troublesome, not very portable, and not-always-defined value that we (fortunately) don't really need here anyway. Bill-Gray 2025-06-28 13:21:23 -0400
  • 957fdcde99
    Framebuffer/DRM ports : export PDC_SCREEN=n, where n=1, 2, or 3, to cause your programs to start up rotated by 90, 180, or 270 degrees clockwise. Bill-Gray 2025-06-28 13:19:21 -0400
  • a6cc667a5b
    DRM port : better error reporting if DRM can't be initialized Bill-Gray 2025-06-28 13:13:39 -0400
  • 45e3722c03
    Follow-up to commit 436f1c3e8e : more clang-18 warnings/errors that 'a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]' Bill-Gray 2025-06-26 18:10:28 -0400
  • aec37eb403
    Framebuffer/DRM : we can now access either the mouse or the keyboard devices. We'll use the latter in subsequent commits to check for Shift, Alt, Ctrl modifiers. Bill-Gray 2025-06-25 11:44:41 -0400
  • 756019bf54
    Framebuffer/DRM README.md : neglected to mention permissions issue/fix for mouse use Bill-Gray 2025-06-25 11:38:16 -0400
  • 8aba2b42f1
    Updated README.md for framebuffer/DRM port. Clarified a comment about the 'common' mouse handling code. Updated PDC_VER_DAY and HISTORY.md. Bill-Gray 2025-06-23 22:31:29 -0400
  • af4a7c5d72
    Avoid flickering in 'picsview'. Bill-Gray 2025-06-23 18:42:50 -0400
  • 436f1c3e8e
    Fix for clang-18 warning/error : 'a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]' Bill-Gray 2025-06-23 18:40:51 -0400
  • 7ec7b956f0
    Framebuffer/DRM ports now have full mouse support Bill-Gray 2025-06-23 18:36:24 -0400
  • 157281bd1b
    The ncurses interface ignores left and right tilt-mouse events, not left and left (sic) events. Copy/pasta error, I suspect. Bill-Gray 2025-06-22 21:40:27 -0400
  • 9eba9df244
    Improvements to 'common' mouse code : Bill-Gray 2025-06-22 20:36:21 -0400
  • 570e9c4c3d
    VT (and framebuffer and DRM ports) : call PDC_flushinp() with mouse input in the queue, and you enter an infinite loop! Bill-Gray 2025-06-22 19:41:25 -0400
  • a4c01532e8
    Digital Mars compiler objects to strict casting of function pointers (see commit ce60aa6608) Bill-Gray 2025-06-22 14:08:39 -0400
  • 6af988940d
    'picsview.exe' failed to compile with OpenWATCOM, because _unlink() lacked a function prototype Bill-Gray 2025-06-22 12:41:58 -0400
  • 6eedea061c
    OpenWATCOM objected to Microsoft®'s _In_ and _Out_ parameter annotations Bill-Gray 2025-06-22 12:40:02 -0400
  • 3e528a85d4
    Follow-up to preceding commit : MANUAL.md re-built, now with portability tables markdown-ized Bill-Gray 2025-06-21 23:02:23 -0400
  • ed3103d705
    Made 'portability' sections into markdown-friendly tables, a la PDCurses Bill-Gray 2025-06-21 23:01:12 -0400
  • d42315aafb
    Fixed a cast warning Bill-Gray 2025-06-21 22:52:02 -0400
  • 28b6769e55
    'testcurs' modified so that mouseinterval() can be set independently of the mouse event mask. Simplifies testing slightly. Bill-Gray 2025-06-21 22:49:58 -0400
  • 0de9f723e3
    If an application #defines PDC_NCMOUSE, the behavior of mouse function is fully compatible with ncurses. Wheel up/down is mapped to buttons 4/5 pressed. Bill-Gray 2025-06-21 22:42:25 -0400
  • 3d3b972e96
    Merge 41a249369c into ce60aa6608 Mioki 2025-06-22 00:25:52 +0000
  • ce60aa6608
    Work-around for -Wcast-function-type warning from GetProcAddress() Bill-Gray 2025-06-20 12:44:08 -0400
  • e9ddc8c090
    Final steps for new release 4.5.2 : change of version constants in 'curses.h' and 'docs/HISTORY.md', a few recent changes logged in the latter, updated 'docs/USERS.md'. v4.5.2 Bill-Gray 2025-06-19 16:18:09 -0400
  • 736886c32e
    DOS 'PDC_napmsl()' didn't round to the nearest clock tick correctly. The quantity added should have been 23590, about half the divisor 47181. With the incorrect value, naps would be one tick (about 55 milliseconds) shorter than they should be about 40% of the time. Unsurprisingly, nobody noticed. (But it was _wrong_.) Bill-Gray 2025-06-18 22:18:07 -0400
  • 07a5469785
    Made some curses.h tables more markdown-friendly Bill-Gray 2025-06-18 19:37:50 -0400
  • b786e76322
    Clarity William McBrine 2025-02-18 22:45:56 -0500
  • 1cc01e4ec3
    Revised chtype layout grids to be markdown-friendly, a la wmcbrine/PDCurses@26f39dec9 (except we have a couple more tables that needed reformatting) Bill-Gray 2025-06-18 19:16:39 -0400
  • 7cc0f0d1bb
    Updated USERS.md to list PDCursesMod-specific attributes and ACS glyphs. Emphasized (in curses.h) that the latter are probably best avoided. Bill-Gray 2025-06-18 18:54:34 -0400
  • c58fd922d0
    Shameless copy of wmcbrine/PDCurses@574895223 ('tables for USERS.md') Bill-Gray 2025-06-18 18:17:45 -0400
  • a06e0be5ab
    Shameless copy of wmcbrine/PDCurses@aa8d315 (extended to include PDCursesMod-added platforms) Bill-Gray 2025-06-18 15:24:26 -0400