Commit Graph

  • 138496105c halfdelay() to the rescue again. William McBrine 2005-11-23 23:46:42 +00:00
  • 4deb6dde48 PDC_BUILD is no longer PDC_BUILD????, so reflect that in the comments. To Do: It's probably about time to update that build number. William McBrine 2005-11-23 19:44:20 +00:00
  • febc7c19a2 Duplicate GetLastError() calls. William McBrine 2005-11-23 15:30:52 +00:00
  • dd3d18b984 One more thing to delete in "clean": *.res. William McBrine 2005-11-23 14:49:52 +00:00
  • 234b9d4f58 Fix for bug 1144353 Mark Hessling 2005-11-23 04:42:43 +00:00
  • 2f457e6c60 Move idle() to front of waitforkey() so we don't have to wait for the clock; also, comments. William McBrine 2005-11-23 01:16:55 +00:00
  • 78dfd0d86d tuidemo was incredibly slow in XCurses (due to a "sleep(1)" after each keystroke!), and pegged the CPU on other platforms. The correct solution is halfdelay(). It's also much simpler. William McBrine 2005-11-23 00:47:07 +00:00
  • 7c354194f0 Got rid of meaningless casts, eliminated a warning. William McBrine 2005-11-22 15:44:02 +00:00
  • 49e575bfca IS_THIS_REALLY_NEEDED? No. Minor warning cleanups. William McBrine 2005-11-22 05:55:04 +00:00
  • cba1f2318a Suppressed all the remaining Watcom warnings, and most of the ones in Borland, via command-line options. The Watcom warnings were all about the cbreak()-style macros -- "Expression is only useful for its side effects." Nothing to be done about that one. Borland had a similar one ("Code has no effect"), along with a lot of warnings about unused parameters, where functions haven't been fleshed out yet (and in some cases, probably never will be). The latter may be useful, but we probably don't need to see them every time. William McBrine 2005-11-22 04:49:07 +00:00
  • 23843d8d74 Another ptest build added. William McBrine 2005-11-22 01:04:08 +00:00
  • b25c067ff7 Build ptest along with other demos. More to come; I only added it for the ones I've successfully tested. William McBrine 2005-11-22 01:03:24 +00:00
  • d9d24acb4f Warning cleanup (mainly added prototypes). William McBrine 2005-11-22 00:45:45 +00:00
  • 54465b4700 Removed path from CCFLAGS -- not needed, plus the line became too long for tuidemo to actually be built under DOS. Now it works. William McBrine 2005-11-21 23:37:43 +00:00
  • 91e0b153bb Improved "clean" targets. More to do in this regard. William McBrine 2005-11-21 20:49:57 +00:00
  • edce1d7c3e Borland's make already knows what CC is. By omitting it, the file works for both Turbo and Borland compilers without further editing. William McBrine 2005-11-21 19:46:37 +00:00
  • c804ec55cf Redundant, unused files. William McBrine 2005-11-21 19:40:52 +00:00
  • e6abbfed15 New format for time logging -- the inclusion of CLOCKS_PER_SEC was adding a dependency on math libraries for old Borland DOS compilers, which (among other things) broke the demo builds. William McBrine 2005-11-21 19:39:03 +00:00
  • 8dfdc53fd1 Grammar fix: "required" -> "require". William McBrine 2005-11-21 04:36:14 +00:00
  • 5f72dc3c00 Small correction: int -> attr_t. William McBrine 2005-11-21 04:03:03 +00:00
  • 9788129736 Color-changing code was really messed up. See bug #1227795 on SourceForge for more. William McBrine 2005-11-21 02:59:58 +00:00
  • 4b364d193e More warning cleanup. William McBrine 2005-11-21 01:03:37 +00:00
  • f56ebed424 Added some error-checking. William McBrine 2005-11-20 18:55:11 +00:00
  • 59037b58a7 Changed 500 to 680 in color_content() to match ncurses. To Do: This should report actual values for XCurses (and init_color() should work there). William McBrine 2005-11-20 18:44:16 +00:00
  • 92147179d2 Simplistic implementation of color_content(). Also, since init_color() doesn't init any colors, it now returns ERR instead of OK. William McBrine 2005-11-20 16:39:24 +00:00
  • 574d7414f1 Function hotkey() didn't actually work (just always returned the first letter). William McBrine 2005-11-20 15:52:08 +00:00
  • 2bc972817e More warning cleanup -- mainly getting prototypes working. William McBrine 2005-11-20 04:01:01 +00:00
  • bd9df7ffe4 One more (chtype) cast for ERR, in a comparison to the returned value from mvwinch(). William McBrine 2005-11-19 20:34:25 +00:00
  • d0ca9af570 Undid the inclusion of windows.h for Watcom >= 1200. It's not needed, at least for Open Watcom 1.3, and it can interfere with other programs. William McBrine 2005-11-19 19:44:31 +00:00
  • 4aee542e8a Missing "d" on "defined" in Watcom/Win32 area. I don't think the added "WIN32" is needed anyway. William McBrine 2005-11-19 19:11:10 +00:00
  • 18afd53512 Added a bunch of "const"s for conformity to the spec and other versions. This should also resolve at least one complaint I found on Usenet. William McBrine 2005-11-19 19:07:21 +00:00
  • eb6256cf4d Changing ERR to -1 made it incompatible with the unsigned chtype, causing warnings where mvinch() and mvwinch() were used in programs. Now cast as (chtype)ERR -- but should these be returning ERR at all? William McBrine 2005-11-17 12:36:04 +00:00
  • 70eac792b0 Added the undocumented ACS defines (S3, etc.) for DOS/OS2/Win. William McBrine 2005-11-16 21:34:27 +00:00
  • 44afa2085f Added aliases for ACS_BBSS, etc. to DOS/OS2/Win. To Do: This is redundant with the XCurses aliases, which run the other way. Also added comments and changed some spacing. William McBrine 2005-11-14 16:15:19 +00:00
  • f0ae85bbdd The "enhanced" versions of the ACS characters for DOS/OS2/Win are now permanently enabled (see mailing list). Adding A_ALTCHARSET is all that's needed to keep them in line. (Am I wrong?) William McBrine 2005-11-14 14:37:45 +00:00
  • 740d3aeda1 Fix for cygwin DLL creation. Mark Hessling 2005-11-14 03:25:37 +00:00
  • 2abff69f31 Fix for cygwin build of DLLs Mark Hessling 2005-11-14 00:34:29 +00:00
  • 824aa252c6 Better support for non US keyboards. Numeric Keypad handling needs to handled better. Mark Hessling 2005-11-14 00:17:32 +00:00
  • f70058f2eb *** File Deleted *** Mark Hessling 2005-11-14 00:01:30 +00:00
  • ecd8eb56db Fix cygwin build of DLL Mark Hessling 2005-11-13 23:58:17 +00:00
  • 4a6d386dbf Removed redundant definition of Mouse_status; allows compilation on Mac OS X. (Why did it work in Linux?) Some bad bugs still on both OSes with this port (see ptest and testcurs demos). William McBrine 2005-11-13 23:18:35 +00:00
  • 7adae3ea21 Added HAVE_STRING_H for newer EMX (does nothing with 0.9d). William McBrine 2005-11-13 16:42:58 +00:00
  • dd89757dbf More warning cleanup. William McBrine 2005-11-13 14:54:50 +00:00
  • b8da31843b Warning cleanup. More to come. Also, I had to remove HAS_UNISTD_H from the MinGW definitions to get it to compile. (This also corresponds to a patch I sent to the mailing list.) William McBrine 2005-11-12 20:54:58 +00:00
  • 42d9961a67 CCINCDIR is also needed here. Actually, I can't see a difference between this and wccos2.mak; they both work for me, with Open Watcom 1.3. William McBrine 2005-11-12 20:44:31 +00:00
  • d282820887 Removed the redirects ("<<") because they didn't work in my version of nmake (the latest I could find). The length of the command lines shouldn't be a problem anyway -- Windows' limit is at least 2K (vs. 127 bytes for old DOS), probably 8K or 32K (depending on how the command is launched). William McBrine 2005-11-12 19:20:36 +00:00
  • 698508032d Changed ifdef for inclusion of string.h from STDC_HEADERS to HAVE_STRING_H, as used elsewhere. To do: Some files include string.h with no check. It should probably be all or nothing. William McBrine 2005-11-12 15:31:14 +00:00
  • 99315ac59a Removed more redundant code. William McBrine 2005-11-12 14:30:51 +00:00
  • ff0917b84d Added extra "ifndef __OS2__" for compatibility with newer versions of EMX that _do_ define the symbol. William McBrine 2005-11-12 13:55:54 +00:00
  • 77250e316a Changed PDC_query_adapter_type() to avoid crashes, and eliminate a redundant copy. (See mailing list archive for more.) William McBrine 2005-11-12 13:51:59 +00:00
  • 7bbd312e4f Remove compiler warnings Mark Hessling 2005-08-24 09:24:27 +00:00
  • 3d6c9a73bb Remove compiler warnings in LCC Mark Hessling 2005-08-24 09:18:01 +00:00
  • 84ebece3cc Always physically move the cursor in PDC_gotoxy() Mark Hessling 2005-08-24 08:45:18 +00:00
  • 4ff1189c86 Update Windows versions supported Mark Hessling 2005-06-28 01:35:31 +00:00
  • 7f4a941843 Use PDCURSES_SRCDIR env variable to specify PDCurses source. Mark Hessling 2005-06-28 01:32:39 +00:00
  • af4ad56010 Add mouse scroll button "keys". Mark Hessling 2005-06-28 01:28:49 +00:00
  • da1de94400 Default background color to be same as for current terminal/window; not set to white on black. Mark Hessling 2005-06-28 01:21:34 +00:00
  • f2a2c2787b Don't include stdio.h and stdlib.h inside the "extern C" declarations Mark Hessling 2005-06-28 01:14:07 +00:00
  • f14f16e111 Set SP->orig_attr to current windows colors. Mark Hessling 2004-12-16 01:06:26 +00:00
  • fdaff9a03f Set SP->orig_attr to default. Mark Hessling 2004-12-16 01:03:18 +00:00
  • e86e71b6f3 Use SP->orig_attr for setting default colors Mark Hessling 2004-12-16 01:01:24 +00:00
  • 760b72c04e Add PDC_ORIGINAL_COLORS explanation Mark Hessling 2004-12-16 01:00:22 +00:00
  • b155bcc9f9 Add Win32 foreground/background masks. Define format of orig_attr Mark Hessling 2004-12-16 00:56:10 +00:00
  • 21a0069e05 Add focus hints for click-to-front window managers. Code courtesy of Jean-Pierre Demailly Mark Hessling 2004-12-11 03:47:59 +00:00
  • 48524b02fe Changes from Florian - fix bug with clear() Mark Hessling 2004-09-14 07:57:32 +00:00
  • e121dbbffe Changes from Florian - enable PDC_debug() Mark Hessling 2004-09-14 07:56:14 +00:00
  • ae4e07ee09 Changes from Florian - mainly OpenWatcom related Mark Hessling 2004-09-14 07:54:34 +00:00
  • b9b5a5fd36 Handle mouse scroll wheel Mark Hessling 2004-09-10 08:00:09 +00:00
  • 8fddf42d19 Remove extra blanks Mark Hessling 2004-09-10 07:52:21 +00:00
  • 5fff3d69ad Remove check for number of mouse buttons - not needed. Support for mouse scroll wheel Remove some keyboard checking that caused problems on non-US keyboards Mark Hessling 2004-09-10 07:51:40 +00:00
  • 32ad40949b Remove check for number of mouse buttons - not needed Mark Hessling 2004-09-10 07:47:44 +00:00
  • 689eae814c Remove warning Mark Hessling 2004-09-10 07:44:25 +00:00
  • 945a632e71 Add support for building XCurses under cygwin - pointless as Cygwin has no shared memory support yet. Mark Hessling 2004-09-10 07:43:05 +00:00
  • 0c14f06d92 Add support for building XCurses under cygwin - pointless as Cygwin has no shared memory support yet. Mark Hessling 2004-09-10 07:34:35 +00:00
  • fdc3debbdf Changes for support of mouse scroll button Mark Hessling 2004-09-10 07:28:44 +00:00
  • 179cd4417b Feature request 1004399 Mark Hessling 2004-08-07 07:18:46 +00:00
  • b456d75019 Use env variable for source directory Mark Hessling 2004-08-07 04:49:57 +00:00
  • 938f60b364 Minor change to return type for myrefresh() Mark Hessling 2004-08-07 04:45:08 +00:00
  • 2fa6de5a3d Fix bug 1001994; S-TAB under Win32 now works Mark Hessling 2004-08-07 04:36:05 +00:00
  • 72e6a3cfcf Minor cleanups - Walter Briscoe Mark Hessling 2004-07-26 07:49:11 +00:00
  • 83e99fe616 Make work with all Borland compilers - Walter Briscoe Mark Hessling 2004-07-26 07:45:15 +00:00
  • 02c99c75a3 *** File Deleted *** Mark Hessling 2004-07-26 07:43:32 +00:00
  • 2770c7d980 Clean up code. Mark Hessling 2004-07-01 07:28:44 +00:00
  • 7fbd8ae2d4 MinGW changes from Vladimir Kokovic Mark Hessling 2004-07-01 07:28:05 +00:00
  • 6893a9f80a Fix bug in Selection - Vladimir Kokovic Mark Hessling 2004-06-26 06:14:26 +00:00
  • ce92539ec1 Try another version of screen resizing for Win32� Mark Hessling 2004-04-02 02:25:17 +00:00
  • 9cb41a719a Resize screen for WIN32 in resetty() Mark Hessling 2004-04-02 02:24:04 +00:00
  • 58cfacadb4 *** empty log message *** Mark Hessling 2004-03-19 11:58:19 +00:00
  • eb48fbc838 Update comments. Mark Hessling 2004-01-07 09:49:47 +00:00
  • 2d804f7a0c Add parentheses around conditional. Mark Hessling 2004-01-04 08:51:31 +00:00
  • 6c94b3fe9c string.h and process.h for OpenWatcom on OS/2 Mark Hessling 2004-01-03 11:32:59 +00:00
  • 97a22211d7 Add missing #endif Mark Hessling 2004-01-02 21:02:50 +00:00
  • c13e4bfc34 Expand on DOS memory macros. Did not compile in previous format. Mark Hessling 2004-01-02 21:02:13 +00:00
  • 5d82e47787 Remove minor compilation warning Mark Hessling 2004-01-02 21:01:01 +00:00
  • c4d635756b Addition of Pacific Compiler support - Ron Thibodeau Code tidy up for prototypes - Ron Thibodeau Change all GO32 to __DJGPP__ Mark Hessling 2004-01-02 05:50:05 +00:00
  • 4484c693eb Change timeout to 2/10ths second Mark Hessling 2004-01-01 22:08:01 +00:00
  • df3801d683 Be consistent in how to handle timeout() and halfdelay() Mark Hessling 2004-01-01 22:07:41 +00:00
  • 2c2a5dd445 Support for timeout() and halfdelay() Mark Hessling 2004-01-01 07:47:09 +00:00
  • 03e81d9439 Change root directory of PDCurses source. Mark Hessling 2004-01-01 07:19:38 +00:00
  • d771ead3ea Add some debugging Mark Hessling 2004-01-01 03:17:49 +00:00