Public Domain Curses - a curses library for environments that don't fit the termcap/terminfo model, modified and extended from the 'official' version
Clone or download
#70 Compare This branch is 344 commits ahead, 227 commits behind wmcbrine:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
demos Must use 'mouse_set' to get triple clicks in PDCurses (see 'mouse.c' … Aug 27, 2018
doc Renamed 'newdemo' to 'ozdemo', per William McBrine. (It's not especia… Jul 4, 2018
dos Renamed newly combined WATCOM makefile, removed the two separate old … Aug 4, 2018
ncurses Renamed 'newdemo' to 'ozdemo', per William McBrine. (It's not especia… Jul 4, 2018
os2 Renamed 'newdemo' to 'ozdemo', per William McBrine. (It's not especia… Jul 4, 2018
pdcurses Revised resize_term() documentation to reflect new platforms and the … Jul 18, 2018
sdl1 Similar wmcbrine-style changes. Also added usage comments and ability… Jul 6, 2018
sdl2 Renamed 'newdemo' to 'ozdemo', per William McBrine. (It's not especia… Jul 4, 2018
vt Double and triple-click events are now detected Aug 27, 2018
win32a Various files in the Win32a flavor referred to the 'old' makefile nam… Aug 5, 2018
wincon manual merge of ea517ce finishing merge of #82 Aug 4, 2018
x11 See John P. Hartmann fix in wmcbrine branch, 2017 Dec 23. I had the d… Jul 6, 2018
.gitignore Renamed 'newdemo' to 'ozdemo', per William McBrine. (It's not especia… Jul 4, 2018 Unified dos/wccdos16.mak and dos/wccdos4g.mak into dos/wccdos.mak Oct 24, 2017 Excess spaces. Jan 10, 2016
Makefile Move configure script etc. to the x11 directory. Jan 12, 2016 Update Jul 31, 2018
acs_defs.h INFINITY was #defined in math.h. That got a re-definition warning wit… Nov 26, 2016
curses.h Adds PDC_KEY_MODIFIER_REPEAT, used in Win32 console and GUI, SDL2, an… Feb 2, 2018
curspriv.h debug: hold trace file open while trace is enabled Oct 22, 2017
libobjs.mif Renamed 'newdemo' to 'ozdemo', per William McBrine. (It's not especia… Jul 4, 2018
makedist.mif More markdown madness. Jan 5, 2016
panel.h Per Simon Sobisch ideas, removed all need for .def files (basically, … Aug 22, 2017
term.h Cleanup for `PDCEX` entries - these should not be part of the def fil… Jul 24, 2017
version.mif Brought 'version.mif' numbers into line with 'curses.h', as pointed o… May 9, 2017
watcom.mif Renamed 'newdemo' to 'ozdemo', per William McBrine. (It's not especia… Jul 4, 2018

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

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.

Legal Stuff

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.


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


William McBrine ("official" PDCurses)

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