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/dos
Bill-Gray 80fdfe7095
Digital Mars makefiles for DOS, DOSVGA, and WinGUI can now build the 'test' programs
5 months ago
..
CMakeLists.txt Brought CMake's suite of demos up to date for DOS, DOSVGA, WinCon, WinGUI. Others to follow. 2 years ago
Makefile GNU Makefiles cleanup 3 years ago
Makefile.bcc Replaced existing DOS platform with wmcbrine code (with minor additions of new functions). 5 years ago
Makefile.dmc Digital Mars makefiles for DOS, DOSVGA, and WinGUI can now build the 'test' programs 5 months ago
Makefile.wcc Some progress in use of a 'configure' option with OpenWATCOM in DOS. Long file names cause trouble. 2 years ago
README.md explicit specify to not support WIDE=Y for DOS port 2 years ago
naptest.c Corrected 'naptest' handling of midnight-spanning naps 5 years ago
pdcclip.c Clipboard handling is identical for DOS, DOSVGA, VT, and the framebuffer port, so it's all in the 'common' directory now 3 years ago
pdcdisp.c Test for 'is this a valid alternative charset character' assumed 16 bits were assigned to A_CHARTEXT. That's always true in upstream PDCurses, but we have 21 bits (for full Unicode characters and 64-bit chtypes) and 8 bits (for narrow-build 32-bit chtypes). Mark Hessling pointed me to a compiler error in the latter case, and there could be display issues on platforms where the error doesn't occur. And in any case, the revised code is easier to look at and understand (no magical 0xff80 constants). 2 years ago
pdcdos.h explicit specify to not support WIDE=Y for DOS port 2 years ago
pdcgetsc.c Replaced existing DOS platform with wmcbrine code (with minor additions of new functions). 5 years ago
pdckbd.c SP->key_code is not really needed. We had code to set it for each platform, sometimes erroneously. All we need do is check if the returned code is between KEY_MIN and KEY_MAX, since (unlike on some implementations) those can't correspond to valid key hits. 4 years ago
pdcscrn.c (Facepalm) PDC_free_platform_dependent_memory() was completely stupid. We already have PDC_scr_free() for exactly that purpose. 2 years ago
pdcsetsc.c Moved pdc_color_started into SP as 'color_started'. 5 years ago
pdcutil.c Much of the DOS 'utility' code (napping, beeping, getting data from/putting into memory, interrupts) is the same between DOS and DOSVGA, and shouldn't be duplicated. Those bits are now all in 'common/dosutil.c'. 2 years ago

README.md

PDCurses for DOS

This directory contains PDCurses source code files specific to DOS.

Building

  • Choose the appropriate makefile for your compiler:

      Makefile     - DJGPP
      Makefile.bcc - Borland C++
      Makefile.wcc - Watcom
    
  • For 16-bit compilers, you can change the memory MODEL as a command- line option. (Large model is the default, and recommended.) With Watcom, specifying "MODEL=f" (flat) will automatically switch to a 32-bit build.

    Note: if you want WIDE support use the DOSVGA port instead.

  • Optionally, you can build in a different directory than the platform directory by setting PDCURSES_SRCDIR to point to the directory where you unpacked PDCurses, and changing to your target directory:

      set PDCURSES_SRCDIR=c:\pdcurses
    
  • Build it:

      make -f makefile
    

    (For Watcom, use "wmake" instead of "make".) You'll get the library (pdcurses.lib or .a, depending on your compiler) and a lot of object files. Add the target "demos" to build the sample programs.

Distribution Status

The files in this directory are released to the public domain.

Acknowledgements

Watcom C port was provided by Pieter Kunst kunst@prl.philips.nl

DJGPP port was provided by David Nugent davidn@csource.oz.au