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 4c08cf360c Follow-up to commits 4e17535c1d, a1399a3ef, f4d30373ae to have mouse positions sent for wheel events. This extends that functionality to DOSVGA. (I think. I lack a wheel mouse that works in DOS.) 6 years ago
..
Makefile Makefiles now match chasonr version (see chasonr commit e9f10e4a77a97aa444) 6 years ago
Makefile.bcc Makefiles now match chasonr version (see chasonr commit e9f10e4a77a97aa444) 6 years ago
Makefile.dmc Makefiles now match chasonr version (see chasonr commit e9f10e4a77a97aa444) 6 years ago
Makefile.wcc Makefiles now match chasonr version (see chasonr commit e9f10e4a77a97aa444) 6 years ago
README.md Makefiles now match chasonr version (see chasonr commit e9f10e4a77a97aa444) 6 years ago
cp437.h Mangled conversion from CP437 to Unicode. Error caught by comparison to chasonr version. (We are now byte-for-byte identical.) 6 years ago
font.h font_bytes[] is only used within pdcscrn.c, and should be a static const array, as in chasonr's version 6 years ago
hexize.c Initial DOSVGA platform effort, from @chasonr. Added use of a built-in font, rather than getting it from ROM. 6 years ago
mk_font.c Small utility to convert VGA fonts to a C array suitable for 'font.h'. 6 years ago
pdcclip.c Initial DOSVGA platform effort, from @chasonr. Added use of a built-in font, rather than getting it from ROM. 6 years ago
pdcdisp.c Bringing in chasonr's changes to allow wide-character builds and use of PSF2 fonts. 6 years ago
pdcdos.h Bringing in chasonr's changes to allow wide-character builds and use of PSF2 fonts. 6 years ago
pdcgetsc.c Bringing in chasonr's changes to allow wide-character builds and use of PSF2 fonts. 6 years ago
pdckbd.c Follow-up to commits 4e17535c1d, a1399a3ef, f4d30373ae to have mouse positions sent for wheel events. This extends that functionality to DOSVGA. (I think. I lack a wheel mouse that works in DOS.) 6 years ago
pdcscrn.c Bringing in chasonr's changes to allow wide-character builds and use of PSF2 fonts. 6 years ago
pdcsetsc.c Bringing in chasonr's changes to allow wide-character builds and use of PSF2 fonts. 6 years ago
pdcutil.c DOSVGA PDC_port_val now equals a #defined constant, instead of a 'magic number'. 6 years ago
pdcvesa.h Initial DOSVGA platform effort, from @chasonr. Added use of a built-in font, rather than getting it from ROM. 6 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