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/dosvga
Bill-Gray 981893b997
DOSVGA failed on some Watcom compiles due to conflicting definitions of _FP_SEG and _FP_OFF. 'ripoff' now builds correctly on Digital Mars.
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 'terminfo.o' was not included in the DOSVGA Makefile, nor in the WinCon Microsoft(R) makefile. The WinCon Digital Mars makefile said 'term.obj' where it should have said 'terminfo.obj'. Found after a careful check of the reversion of commit 22c4d82f8c, which was done in commits d5d2d8a857, 248146021e and ab1c007273. 2 years ago
Makefile.bcc Makefiles now match chasonr version (see chasonr commit e9f10e4a77a97aa444) 5 years ago
Makefile.dmc Digital Mars makefiles for DOS, DOSVGA, and WinGUI can now build the 'test' programs 5 months ago
Makefile.wcc DOS, OpenWATCOM : Can't use 64-bit bit chtypes on builds with 16-bit integers. 3 years ago
README.md Makefiles now match chasonr version (see chasonr commit e9f10e4a77a97aa444) 5 years ago
cp437.h Missed one : CP437 point 237 is phi, not psi, and (unrelated error) it's U+3C6, not U+36C. 3 years ago
font.h font_bytes[] is only used within pdcscrn.c, and should be a static const array, as in chasonr's version 5 years ago
hexize.c Initial DOSVGA platform effort, from @chasonr. Added use of a built-in font, rather than getting it from ROM. 5 years ago
mk_font.c Small utility to convert VGA fonts to a C array suitable for 'font.h'. 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 DOSVGA failed to compile with Digital Mars. A few corrected/added #defines fixed this. 5 months ago
pdcdos.h DOSVGA failed on some Watcom compiles due to conflicting definitions of _FP_SEG and _FP_OFF. 'ripoff' now builds correctly on Digital Mars. 5 months ago
pdcgetsc.c Bringing in chasonr's changes to allow wide-character builds and use of PSF2 fonts. 5 years ago
pdckbd.c Partial reversion/fix for commit abbd8f5268 (see discussion for that commit). The redefinition of KEY_OFFSET broke some existing code. Fortunately, the redefinition proved not absolutely essential to fixing the warnings in question. 2 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 Bringing in chasonr's changes to allow wide-character builds and use of PSF2 fonts. 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
pdcvesa.h Initial DOSVGA platform effort, from @chasonr. Added use of a built-in font, rather than getting it from ROM. 5 years ago

README.md

PDCurses for DOS

This directory contains PDCurses source code files specific to the VGA-capable DOS port.

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.

  • 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.

    You can also give the optional parameter "WIDE=Y", to build the library with wide-character (Unicode) support:

      wmake -f Makefile.wcc WIDE=Y
    

    (WIDE=Y is untested on the Borland compiler.)

The font can be set via the environment variable PDC_FONT. The font must be in the PSF format, version 2.

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