Public Domain Curses - a curses library for environments that don't fit the termcap/terminfo model, modified and extended from the 'official' version https://www.projectpluto.com/win32a.htm
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.
 
 
 
 
 
 
Go to file
Bill-Gray ab9f4163c5 VT flavor did not recognize the Escape key 6 years ago
cmake roll sdl2/sdl2 ttf versions, remove un-used parameter 6 years ago
common Simplified logic for 'pdccolor.c' (palette management code for VT and WinGUI, and eventually SDLn, X11, and DOSVGA). Updated the documentation for that code in 'pdccolor.txt'. 6 years ago
demos Added keystrokes to 'picsview' to mirror or flip the image 6 years ago
docs Rebuilt manual using mkman.sh. The existing manual reflected William McBrine's version, and therefore is missing a lot of features. 6 years ago
dos PDC_init_color() now takes integers, not shorts. This had some small ripple effects. 6 years ago
dosvga 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
ncurses ncurses makefile modified so one can 'make speed' (demo to test speed of ncurses or PDCurses drawing) 6 years ago
os2 fixed broken OS2 defintion of PDC_scr_open 6 years ago
pdcurses Used logical or || where it should have been bitwise or |. 6 years ago
sdl1 Mouse wheel events return 'correct' coordinates on SDLn, X11, VT, and WinGUI, instead of (-1,-1). See wmcbrine issue 88. DOS, DOSVGA, WinCon, OS/2 (i.e., all other platforms) to follow. 6 years ago
sdl2 SDL2 in VC : needs shell32.lib to get CommandLineToArgW. Thanks to Mark Hessling for the fix. 6 years ago
vt VT flavor did not recognize the Escape key 6 years ago
wincon WINCON: Send real mouse position with scroll event 6 years ago
wingui Mouse wheel events return 'correct' coordinates on SDLn, X11, VT, and WinGUI, instead of (-1,-1). See wmcbrine issue 88. DOS, DOSVGA, WinCon, OS/2 (i.e., all other platforms) to follow. 6 years ago
x11 Mouse wheel events return 'correct' coordinates on SDLn, X11, VT, and WinGUI, instead of (-1,-1). See wmcbrine issue 88. DOS, DOSVGA, WinCon, OS/2 (i.e., all other platforms) to follow. 6 years ago
.gitignore Changed DOS/Windows-style CR/LF to LF-only for .gitignore 6 years ago
.travis.yml CMake tested on Windows, and Linux 7 years ago
CMakeLists.txt CMake tested on Windows, and Linux 7 years ago
Makefile To avoid confusion with the new "docs" dir (name required by GitHub),rename "doc" to "man". Maybe more doc reorg to come. 7 years ago
README.md Build status badges (travis, Appveyor) 7 years ago
appveyor.yml correct OW cross-compilation CMake scripts 6 years ago
curses.h Documentation errors fixed : bit locations were miscounted, and the possible use of 20 bits for color pairs unmentioned. 6 years ago
curspriv.h Revised COLOR_PAIRS calculation: you get 256 pairs, _unless_ you've got 64-bit chtypes and more than 16 colors. In that case, you get the square of the number of colors (i.e., each pair of colors can be a color pair), up to INT_MAX or 20 bits worth of color pairs. This really should be determined at compile time, but I didn't see a way of doing that. 6 years ago
libobjs.mif Followed wcbrine's lead: removed terminfo.c and term.h, moved mvcur() to move.c See docs/HISTORY.md for details on why this was done. 6 years ago
makedist.mif Followed wcbrine's lead: removed terminfo.c and term.h, moved mvcur() to move.c See docs/HISTORY.md for details on why this was done. 6 years ago
panel.h Per Simon Sobisch ideas, removed all need for .def files (basically, declared exported functions as PDCEX in curses.h and panel.h). Also, changed 'PDC_version' struct to be non-'const'; some compilers objected (with some reason) to it being external and constant at the same time. 8 years ago
version.mif version.mif was never updated for 4.1! 6 years ago
watcom.mif Followed wcbrine's lead: removed terminfo.c and term.h, moved mvcur() to move.c See docs/HISTORY.md for details on why this was done. 6 years ago

README.md

Welcome to PDCurses!

Public Domain Curses, aka PDCurses, is an implementation of X/Open curses for multiple platforms. Relative to the 'official' PDCurses project, this has a variety of improvements, adding a Windows GUI and a VT-like console "flavor" of Curses and expanding the capabilities of the other flavors (SDL1, SDL2, X11, Win32 console, OS/2, and DOS). Some details and screen shots at

https://www.projectpluto.com/win32a.htm

Much of this was done during a long period in which 'official' PDCurses was inactive. It is hoped that the changes in this fork can be merged into the 'official' PDCurses, and a pull request has been made. But the split is looking increasingly permanent.

The core package is in the public domain, but small portions of PDCurses are subject to copyright under various licenses. Each directory contains a README file, with a section titled "Distribution Status" which describes the status of the files in that directory.

If you use PDCurses in an application, an acknowledgement would be appreciated, but is not mandatory. If you make corrections or enhancements to PDCurses, please forward them to the current maintainer for the benefit of other users.

This software is provided AS IS with NO WARRANTY whatsoever.

Ports

PDCurses has been ported to DOS, OS/2, Win32, X11 and SDL1 and SDL2, and this version adds a Windows graphical and VT-like console flavor. A directory containing the port-specific source files exists for each of these platforms.

Build instructions are in the README file for each platform:

  • DOS for use on DOS
  • OS/2 for use on OS/2
  • SDL 1.x for use as separate SDL version 1 window
  • SDL 2.x for use as separate SDL version 2 window
  • wincon (formerly win32) for use on Windows Console
  • WinGUI for use on Windows Graphics Mode
  • X11 (also called XCurses) for use as separate X11 window
  • VT for use on terminal

Distribution Status

All files in this directory except configure, config.guess and config.sub are released to the Public Domain. config.guess and config.sub are under the GPL; configure is under a free license described within it.

Build Status

PDCurses is automatically build in multiple environments:

Build status Travis-CI , also providing artifacts: Build status Appveyor

Maintainer

William McBrine wmcbrine@gmail.com ("official" PDCurses)

Bill Gray pôç.ötulpťcéjôřp@otúlm (this fork)