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/wincon
Bill-Gray d6b7e998eb
WinCon and WinGUI Borland Turbo C makefiles now specify the lack of a 'stdint.h'. If you build with -DUTF8, you need not add -DWIDE (this has been the case with most makefiles for a long time, but we'd not caught up on the Borland ones until now).
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 The 'miscellaneous tests' from the 'tests' directory can now be made, for at least some platforms, with 'make tests'. 8 months ago
Makefile.bcc WinCon and WinGUI Borland Turbo C makefiles now specify the lack of a 'stdint.h'. If you build with -DUTF8, you need not add -DWIDE (this has been the case with most makefiles for a long time, but we'd not caught up on the Borland ones until now). 5 months ago
Makefile.dmc '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.vc Microsoft VC makefiles for WinGUI and WinCon updated to allow building of 'test' programs 6 months ago
Makefile.wcc OpenWATCOM DLL builds for WinCon and WinGUI need 'winmm.lib' when the DLL is linked. (Static builds for those platforms need the same libraries, but not until the executables are linked.) 4 years ago
README.md Switched out my Windows console code and switched in wmcbrine code (with minor additions of new functions) 5 years ago
pdcclip.c Put Windows clipboard file into the 'common' directory, to be shared by WinCon, WinGUI, and Windows builds of VT. Maybe Windows SDL1 builds, too, eventually (should be straightforward to do). 2 years ago
pdcdisp.c Correction : accidentally omitted two files from preceding commit cb8c87b287. 1 year ago
pdcgetsc.c Switched out my Windows console code and switched in wmcbrine code (with minor additions of new functions) 5 years ago
pdckbd.c [FIX]: key modifiers were cleared without a key event. 2 years ago
pdcscrn.c gcc-4.8 points out that some C standards don't accept C++-style // remarks. I've edited or removed them. 10 months ago
pdcsetsc.c Switched out my Windows console code and switched in wmcbrine code (with minor additions of new functions) 5 years ago
pdcutil.c Modified 'napping' in WinCon/WinGUI to ensure an immediate return for 0-millisecond naps 3 years ago
pdcwin.h WinCon errored out if you defined both PDC_FORCE_UTF8 and PDC_WIDE. Should be able to do 'em both, though it's redundant. 2 years ago

README.md

PDCurses for Windows console

This directory contains PDCurses source code files specific to the Microsoft Windows console. Although historically called "Win32", this port can just as easily be built for 64-bit systems. Windows 95 through Windows 10 are covered. (Some features require later versions.)

Building

  • Choose the appropriate makefile for your compiler:

      Makefile      - GCC (MinGW or Cygnus)
      Makefile.bcc  - Borland C++
      Makefile.vc   - Microsoft Visual C++
      Makefile.wcc  - Watcom
    
  • 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 makefilename
    

    (For Watcom, use "wmake" instead of "make"; for MSVC, "nmake"; for MinGW, "mingw32-make".) You'll get the library (pdcurses.lib or .a, depending on your compiler) and a lot of object files.

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

      wmake -f Makefile.wcc WIDE=Y
    

    When built this way, the library is not compatible with Windows 9x, unless you also link with the Microsoft Layer for Unicode (not tested).

    Another option, "UTF8=Y", makes PDCurses ignore the system locale, and treat all narrow-character strings as UTF-8. This option has no effect unless WIDE=Y is also set. Use it to get around the poor support for UTF-8 in the Windows console:

      make -f Makefile.bcc WIDE=Y UTF8=Y
    

    You can also use the optional parameter "DLL=Y" with Visual C++, MinGW or Cygwin, to build the library as a DLL:

      nmake -f Makefile.vc WIDE=Y DLL=Y
    

    When you build the library as a Windows DLL, you must always define PDC_DLL_BUILD when linking against it. (Or, if you only want to use the DLL, you could add this definition to your curses.h.)

    Add the target "demos" to build the sample programs.

  • If your build stops with errors about PCONSOLE_SCREEN_BUFFER_INFOEX, add the parameter "INFOEX=N" to your make command line and try again. (This will happen with older compile environments.)

Distribution Status

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

Acknowledgements

Windows console port was originally provided by Chris Szurgot szurgot@itribe.net