Commit Graph

  • 3bdb2d89d5
    'dosutil.c' : clarified a comment. Bill-Gray 2024-07-23 15:56:59 -0400
  • d7e7ec3a84
    Log statement said we'd entered attr_get() when we'd really entered attr_set() (one-byte change). Bill-Gray 2024-07-23 15:55:46 -0400
  • 3c27326d26
    If size_t is an unsigned type, then 'n - 4' can underflow. Also added documentation back in for PDC_mbstowcs, PDC_mbtowc, PDC_wcstombs. Bill-Gray 2024-07-23 15:54:45 -0400
  • bc51d18ff1
    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. Bill-Gray 2024-07-23 15:52:27 -0400
  • 981893b997
    DOSVGA failed on some Watcom compiles due to conflicting definitions of _FP_SEG and _FP_OFF. 'ripoff' now builds correctly on Digital Mars. Bill-Gray 2024-07-16 15:47:31 -0400
  • d22725b90a
    'printw.c' fix to avoid potential buffer overflow issues in DOS Digital Mars builds. Follow-up to commit ddf80d010f. Bill-Gray 2024-07-15 22:24:32 -0400
  • 99481c09f9
    'show_col' now will test insstr() in both wide-character and 8-bit builds. Bill-Gray 2024-07-15 22:22:16 -0400
  • 32f22660c4
    'del_test.c' uses snprintf(), which doesn't exist for Digital Mars. However, _snprintf() does; a #define works around the problem. Bill-Gray 2024-07-15 22:10:29 -0400
  • fd1ddf866c
    DOSVGA failed to compile with Digital Mars. A few corrected/added #defines fixed this. Bill-Gray 2024-07-15 22:07:59 -0400
  • 80fdfe7095
    Digital Mars makefiles for DOS, DOSVGA, and WinGUI can now build the 'test' programs Bill-Gray 2024-07-15 22:06:48 -0400
  • 26128c29aa
    WinGUI beeping : Borland Turbo C lacks a '_beginthread()' function, so we can't beep in a separate thread. The program will therefore lock up while beeping is occurring... don't see a way around that. Bill-Gray 2024-07-15 15:09:35 -0400
  • 21d190bd62
    'del_test' (test of deleting windows and sub-windows) crashes on many systems; you need getch( ) delays so you can see the exact point of failure. Also, the description of what's happening was not very good. Bill-Gray 2024-07-15 15:07:52 -0400
  • f557531ee9
    Now using ncurses-6.5 tests (was 6.4). Some alterations required to get 'savescreen' test to work. Bill-Gray 2024-07-15 15:05:15 -0400
  • a59f452e78
    Borland Turbo-C uses 'putenv()', not '_putenv()'. Bill-Gray 2024-07-15 15:03:48 -0400
  • 218aa8c0ed
    MSVC makefile for VT platform now can build the test programs Bill-Gray 2024-06-27 22:23:50 -0400
  • 99b5d59242
    Updated version date constant and HISTORY.md Bill-Gray 2024-06-20 09:25:55 -0400
  • 7d704dd618
    PDC_wcstombs() could have a buffer overflow in UTF-8 decoding if we had (say) two or three bytes left in the buffer, and the next character decoded to four bytes. That should never happen for our purposes. If it does, it (a) won't overflow now and (b) will trigger an assertion. Bill-Gray 2024-06-19 18:50:40 -0400
  • f02b430ca8
    'show_col' now built as part of 'tests' on ncurses and some others Bill-Gray 2024-06-19 18:27:11 -0400
  • 18ef78de69
    'show_col.c' now also tests insstr() (see commit 3f8dfa9e065; I tried it with a smaller MAX_WSTR in winsnstr() to verify that overflow was properly handled). Also fixed prototype for main() (see preceding commit 9ce8d3c4ae). Bill-Gray 2024-06-19 18:18:14 -0400
  • 9ce8d3c4ae
    Some compilers object to 'int main( )' and insist that you provide argc and argv. Bill-Gray 2024-06-19 18:14:20 -0400
  • bc2e849fec
    Locale wasn't properly set in 'testcurs'. Also, we don't need to reset the _entire_ locale, just the parts concerned with character translation. Bill-Gray 2024-06-19 18:12:53 -0400
  • 41018a2b73
    Added test for gettimeofday() availability on FreeBSDs. The existing tests failed when run with clang. Bill-Gray 2024-06-19 18:11:49 -0400
  • 3f8dfa9e06
    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). Bill-Gray 2024-06-17 15:25:31 -0400
  • dffb2c02a8
    Updated manual, history, and version date Bill-Gray 2024-06-12 14:06:05 -0400
  • 58807ea498
    'WinGUI' : reverting to window being resizable by default, as occurs with SDLn, X11, WinCon, and VT. This addresses issue #300 : rather than change documentation, let's have the behavior be the same between those platforms. Bill-Gray 2024-06-12 13:59:30 -0400
  • ddf80d010f
    printw() had buffer overflow issues if the input text was longer than 512 bytes. In such cases, it now allocates a suitably sized buffer. Added a small test program for this purpose. Bill-Gray 2024-06-12 13:48:08 -0400
  • 63138eaf34
    'watcom.mif' revised so one can build the test programs with OpenWATCOM Bill-Gray 2024-06-12 13:39:44 -0400
  • 785113f0b9
    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. Bill-Gray 2024-06-12 13:38:39 -0400
  • e611673b49
    Microsoft VC makefiles for WinGUI and WinCon updated to allow building of 'test' programs Bill-Gray 2024-06-12 12:01:03 -0400
  • 4619d57dbb
    'testcurs' wide-character input test modified to show the results without line wrap for longish input strings Bill-Gray 2024-06-09 10:01:23 -0400
  • c0a3c2c0d3
    WinGUI : after a screen update, PDC_doupdate() needs to check for and process any pending messages to the window Bill-Gray 2024-06-06 11:34:39 -0400
  • 8aa629c345
    Documentation updates : HISTORY.md and MANUAL.md updated. Extended README.md for the framebuffer/DRM port to describe possible mechanisms for adding fullwidth characters and an application title bar. Bill-Gray 2024-05-08 11:15:43 -0400
  • eef38df392
    As described in previous commit 099fa2876c, the PDC_set_box_type() extension was unnecessary and is removed. Bill-Gray 2024-05-08 10:49:27 -0400
  • 099fa2876c
    'test_pan' now demonstrates non-standard box styles (thick, double-lined horizontally and/or vertically, rounded corners) using the standard 'wborder_set()' Curses function. This makes the PDC_set_box_type() function, added in commit ab7bad3981, a totally unnecessary extension (obviously, I didn't realize that at the time). Following commit will remove that extension. Bill-Gray 2024-05-08 10:27:03 -0400
  • c801354044
    assert()ing that the moved window will be on-screen wasn't a good idea. Some programs (including 'test_pan') assume they can try moving a window, then check the return value to see if it was actually on screen. assert()ing that the 'win' pointer is non-NULL, however, continues to appear to be a good idea. Bill-Gray 2024-05-08 10:23:15 -0400
  • e625d833f3
    On ncurses 6.2 (and nowhere else of which I'm aware), calling bkgd() with no character component, then getting characters with inch() and outputting them with addch() results in ^@ being emitted (the 0 character value is not remapped to a space). This causes weird artifacts in ozdemo's 'bouncing balls' section. Also, blinking text should only be used in extreme cases (nuclear reactor about to melt down, etc.) Bold text suffices here. Bill-Gray 2024-05-06 21:35:49 -0400
  • 5e2a1c82ae
    'focus.c' test program now cleans up memory appropriately. Modified the comment section to point out that the framebuffer and DRM ports could also support define_key() (I have no real plans for doing that on _any_ platform at present, though). Bill-Gray 2024-04-25 14:52:10 -0400
  • 94dbde4fb9
    Polished up 'ins_del.c' test code slightly. You can reset the display by hitting Space. Bill-Gray 2024-04-25 14:51:01 -0400
  • 200b548516
    The 'miscellaneous tests' from the 'tests' directory can now be made, for at least some platforms, with 'make tests'. Bill-Gray 2024-04-25 14:50:12 -0400
  • 06dd84b188
    'testcurs' had a display oddity if the screen was less than 77 columns wide. Bill-Gray 2024-04-25 14:38:32 -0400
  • e29f6ef02b
    Brought HISTORY.md and the framebuffer/DRM README.md up to date. Bill-Gray 2024-04-23 20:28:58 -0400
  • 7293e859e2
    'init_col', 'widetest' demos: clarified some comments. In particular, the former referred occasionally to PDCurses when PDCursesMod or PDCurses* (i.e., both versions) was meant. Bill-Gray 2024-04-23 17:22:24 -0400
  • f7c3fa3330
    DRM platform : you can now set the PDC_SCREEN environment variable to a desired connector (HDMI, DVI, VGA, etc.) and have the display chosen accordingly. Bill-Gray 2024-04-23 17:19:54 -0400
  • 1b7b432f9c
    Framebuffer/DRM port : when the screen is rotated (see preceding commit), the 'left line' may become a 'top line', the 'top line' a 'left line', etc. Also, the strikeout may be vertical instead of horizontal. Bill-Gray 2024-04-23 13:23:57 -0400
  • 0e41ba5e68
    Hitting Alt-/ in the framebuffer and DRM ports now rotates the screen 90 degrees clockwise. This is in preparation for use of the library on phones, where the orientation may change. (It also helps if you have a monitor set up in portrait mode.) Bill-Gray 2024-04-23 12:59:16 -0400
  • 68780872b1
    Revision of commit 03eb51cefc (fix for issue wmcbrine/PDCurses#138) : we should use SP->lines, not LINES. The former will include ripped-off lines and the SLK line(s), if any. Bill-Gray 2024-04-13 21:20:03 -0400
  • 1e8472cdbf
    Update mkfile (#318) Jens Staal 2024-04-13 18:30:07 +0200
  • af887ba43c Update mkfile Jens Staal 2024-04-07 20:12:12 +0200
  • bd28e7f0d9
    VT version of pdckbd.c : refactoring in preparation for adding ncurses extensions define_key(), keybound(), key_defined(). Bill-Gray 2024-03-25 17:13:42 -0400
  • 9236c947f8
    'testcurs' input test : button == 0 for mouse movements _and_ for wheel events, and must be set to 1 before looking for button modifiers for either sort of event. Bill-Gray 2024-03-18 12:55:31 -0400
  • 47ac913034
    Updated README.md for 'tests' to list five new test programs Bill-Gray 2024-03-18 10:29:13 -0400
  • e6b41bb24c
    'restart' demo now allows an arbitrary number of restarts and shows what keys have been hit. I wanted to be sure that we didn't lose keyboard input after a restart (we don't, under either ncurses or PDCursesMod). Bill-Gray 2024-03-18 10:28:03 -0400
  • 2b746bc762
    'opaque.c' : added compilation commands and set up to free all memory at exit (should register 'no allocations in use' when run under Valgrind) Bill-Gray 2024-03-18 10:25:09 -0400
  • 5286a2b359
    'keytest' wouldn't compile on ncurses or PDCurses, due to PDC_millisecs() being a PDCursesMod-only function. Bill-Gray 2024-03-18 10:22:56 -0400
  • fcd2dd0cb8
    'picsview.c' : admittedly minor security/bug fix for possible buffer overflow. Bill-Gray 2024-03-18 10:21:27 -0400
  • bfd13a1e1c
    Sorted 'xlates' table. Previously, it was in no particular order. Thinking about binary-searching for key codes. Bill-Gray 2024-03-17 13:37:14 -0400
  • b487f456a9
    Update build_dependencies.cmake - fixed cmake warning (#317) Yurii Nakonechnyi 2024-03-16 18:04:24 +0300
  • 26abc3b645
    Update build_dependencies.cmake - fixed cmake warning Yurii Nakonechnyi 2024-03-16 13:45:07 +0200
  • 62582e4616
    Added missing escapes to x11/aclocal.m4, per Thomas Dickey's comment at wmcbrine/PDCurses#164 . Bill-Gray 2024-03-13 19:45:08 -0400
  • 5cef1e3d00
    Three new test program-lets, for focus events and the define_key() function; make sure Ctrl-C stops the program in noraw() mode and doesn't in raw() mode; and test out various possible issues with deleting windows if they still have undeleted subwindows. Bill-Gray 2024-03-13 19:41:35 -0400
  • 720c219f40
    'test_pan' should only supply a workaround for ceiling_panel() and ground_panel() on PDCurses. PDCursesMod and ncurses already have both functions. Bill-Gray 2024-03-13 17:14:01 -0400
  • 0376665068
    Several minor fixes to comments, and one bit of code re-arrangement for better readability Bill-Gray 2024-03-13 17:13:00 -0400
  • b02f94fd3d
    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). Bill-Gray 2024-03-13 13:37:27 -0400
  • 5838be7eb1
    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. Bill-Gray 2024-03-13 13:32:06 -0400
  • 98c7405a3f
    Test program for wscrl(), wdeleteln(), winsertln(), and winsdelln(). See previous and next two commits. Bill-Gray 2024-03-13 13:30:14 -0400
  • 5a0d5becee
    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.) Bill-Gray 2024-03-13 13:21:11 -0400
  • 361aab8e57
    Updated history and manual Bill-Gray 2024-03-11 16:39:36 -0400
  • 98b6969a7e
    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. Bill-Gray 2024-03-11 16:33:29 -0400
  • 65dfa7e61a
    Negative values to napms( ) could result in the program hanging Bill-Gray 2024-03-09 16:12:54 -0500
  • a99cc14401
    There is some uncertainty as to the meaning of WA_LOW. But whatever it is, it isn't an outlining character or a synonym for WA_UNDERLINE. Bill-Gray 2024-02-18 18:46:57 -0500
  • b99fed1acb
    WinGUI : partial reversion of commit cb8c87b287 : text is output with the array of locations explicitly specified. I had thought this was no longer necessary, but some 'monospaced' fonts aren't if bold text is included (and probably italic in some cases). Fixes issue #314. Bill-Gray 2024-02-18 18:43:45 -0500
  • a8e929aae8
    gcc-4.8 points out that some C standards don't accept C++-style // remarks. I've edited or removed them. Bill-Gray 2024-02-18 18:39:46 -0500
  • d67c9d8411
    'widetest.c' : if sizeof( wchar_t) != sizeof( unsigned), this line can fail Bill-Gray 2024-02-18 18:32:10 -0500
  • 9a6e9d2f65
    Follow-up to commit e69b42cbf5 : five more Makefiles now use the 'centralized' demo-building bits from common/libobjs.mif Bill-Gray 2024-02-18 10:44:37 -0500
  • a6299ec2a0
    Framebuffer/DRM : with eight-bit graphics, remap 'default' color to zero for the background. (If the foreground is default, it'll get remapped to white automatically.) Bill-Gray 2024-02-18 10:39:13 -0500
  • e69b42cbf5
    Centralized a lot of the demo-building Makefile info into common/libobjs.mif Bill-Gray 2024-02-11 14:52:38 -0500
  • 9ff74e9b8a Respond to WM_CLOSE as WinGUI does Ray Chason 2024-02-10 18:23:24 -0500
  • a071130c95
    Clear clipboard requires clipboard to be opened (#316) Mark Hessling 2024-02-10 01:25:06 +1000
  • a3abc82c10 Adjustments for "classic" EMX Ray Chason 2024-02-08 22:42:34 -0500
  • dd7a2aa662 Rework handling of PDC_FONT Ray Chason 2024-02-08 22:41:39 -0500
  • 0bf639920a Set focus to Curses window on mouse click Ray Chason 2024-02-08 21:56:20 -0500
  • ff74a30000 Add PDC_PORT_OS2GUI enum Ray Chason 2024-02-07 21:35:42 -0500
  • 9b55550bc3 Clear clipboard requires clipboard to be opened Mark Hessling 2024-02-08 08:14:55 +1000
  • cd198a965f Use watcom.wif, and other changes to Makefile.wcc Ray Chason 2024-02-07 13:31:17 -0500
  • d1b8c8e8ce Fix some warnings in GCC Ray Chason 2024-02-07 13:18:04 -0500
  • 798f75b675 Use CP1004 for fast rendering Ray Chason 2024-02-07 09:26:40 -0500
  • d82596d156 Put back writing ASCII in the native code page Ray Chason 2024-02-07 08:27:24 -0500
  • 1c66472439 Don't set up fonts when drawing the cursor Ray Chason 2024-02-07 07:28:48 -0500
  • cf3d97e28c Set up fonts on demand rather than in advance Ray Chason 2024-02-07 07:27:19 -0500
  • 5dd925f9b6 Remove 'options' parameter from render_char Ray Chason 2024-02-07 07:21:58 -0500
  • 3f3a8abcba Limit WM_PAINT to the update rectangle Ray Chason 2024-02-07 07:19:53 -0500
  • 57457f39ac Support combining character U+0338 Ray Chason 2024-02-05 22:06:14 -0500
  • c060bdd08a Fill background for full-width character Ray Chason 2024-02-02 20:26:19 -0500
  • 6c5e7a7e42 Fix some GCC warnings Ray Chason 2024-02-02 20:26:02 -0500
  • 3670346bc6 Compile char_compare only if PDC_WIDE Ray Chason 2024-02-02 10:23:01 -0500
  • 1add88bf08 Initial commit of os2gui port Ray Chason 2024-02-02 09:42:28 -0500
  • 4f04f1b846
    Updated version constants for year/month/day, and brought history and manual up to the present. Bill-Gray 2024-01-26 22:41:20 -0500
  • b274fe359a
    'ripoff.c' test modified to show mouse click locations and to work with 'upstream' PDCurses when resizing Bill-Gray 2024-01-26 22:23:06 -0500
  • 019da8861a
    The core PDCursesMod library no longer tries to draw text that would go outside the screen. asserts() added just to make that clear. Bill-Gray 2024-01-26 15:16:59 -0500
  • 0e6d7538d5
    No need for a refresh() just before a getch(). If anything actually got updated, getch() will call refresh(); if nothing got updated, why call refresh()? Bill-Gray 2024-01-26 15:15:12 -0500