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/demos
Bill-Gray 82084db679
Updated version constants, added OS/2 GUI to list of platforms in 'ozdemo.c'.
2 months ago
..
README.md All READMEs "converted" to markdown (only trivial changes). 9 years ago
UTF-8-demo.txt Somehow, we 'lost' UTF-8-demo.txt, a file used in tuidemo. 4 years ago
calendar.c 'calendar' modified to work with negative years. Only of use to historians and astronomers, of course. 2 years ago
curses.priv.h Changes to support building of 'libform' (ncurses forms menu) and some associated ncurses demos 5 months ago
dates.txt Two new demos, 'mbrot' (Mandelbrot display) and 'calendar' (shows a calendar). 3 years ago
firework.c Demos can now be compiled with -Wextra without warnings appearing (all such warnings involved intentionally unused parameters) 4 years ago
init_col.c Borland Turbo-C uses 'putenv()', not '_putenv()'. 5 months ago
mbrot.c 'mbrot.c' : removed unused #define, made 'help' text clearer 1 year ago
nctests.mif Changes to support building of 'libform' (ncurses forms menu) and some associated ncurses demos 5 months ago
ncurses_cfg.h Changes to support building of 'libform' (ncurses forms menu) and some associated ncurses demos 5 months ago
newtest.c 'newtest.c' and 'testcurs.c' demos : both programs used WA_ and A_ macros somewhat indiscriminately. This works on ncurses, PDCurses, and PDCursesMod, where chtype == attr_t. But it's not safe behavior. Also removed some references to obsolete/renamed attributes (WA_RIGHTLINE is now WA_RIGHT, etc.) 1 year ago
ozdemo.c Updated version constants, added OS/2 GUI to list of platforms in 'ozdemo.c'. 2 months ago
picsview.c 'picsview.c' : admittedly minor security/bug fix for possible buffer overflow. 9 months ago
ptest.c Follow-up to commit e8bc5415b6 : Xinitscr() doesn't allow one to delete the screen after use. At some point, I'll need to figure out a workaround for this; it may result in Xinitscr() being deprecated. 1 year ago
rain.c Demos can now be compiled with -Wextra without warnings appearing (all such warnings involved intentionally unused parameters) 4 years ago
snprintf.c Some new demos failed on Digital Mars, because that platform lacked snprintf() (as do older MSVCs). Supplied a workaround for those three demos. 2 years ago
speed.c Follow-up to commit e8bc5415b6 : Xinitscr() doesn't allow one to delete the screen after use. At some point, I'll need to figure out a workaround for this; it may result in Xinitscr() being deprecated. 1 year ago
test_pan.c 'test_pan' now demonstrates non-standard box styles (thick, double-lined horizontally and/or vertically, rounded corners) using the standard 'wborder_set()' Curses function. This makes the PDC_set_box_type() function, added in commit ab7bad3981, a totally unnecessary extension (obviously, I didn't realize that at the time). Following commit will remove that extension. 8 months ago
testcurs.c Locale wasn't properly set in 'testcurs'. Also, we don't need to reset the _entire_ locale, just the parts concerned with character translation. 6 months ago
tui.c Follow-up to commit b82c7c3d18 : another use of // comments, complained about by older gcc 3 years ago
tui.h Id tags aren't useful with git. 10 years ago
tuidemo.c Demos can now be compiled with -Wextra without warnings appearing (all such warnings involved intentionally unused parameters) 4 years ago
version.c Make the version demo not crash with OpenGL port (& others) 2 years ago
widetest.c 'init_col', 'widetest' demos: clarified some comments. In particular, the former referred occasionally to PDCurses when PDCursesMod or PDCurses* (i.e., both versions) was meant. 8 months ago
worm.c Demos modified to delscreen() the pointer returned by newterm(). This is more portable than using delscreen(SP). For example, it'll work with ncurses. (Generally speaking, programs shouldn't use SP, ever. It may vanish in future version of PDCursesMod, and maybe even in PDCurses.) 1 year ago
xmas.c Demos can now be compiled with -Wextra without warnings appearing (all such warnings involved intentionally unused parameters) 4 years ago

README.md

PDCurses Demos

This directory contains demonstration programs to show and test the capabilities of curses libraries. Some of them predate PDCurses, PCcurses or even pcurses/ncurses. Although some PDCurses-specific code has been added, all programs remain portable to other implementations (at a minimum, to ncurses).

Building

The demos are built by the platform-specific makefiles, in the platform directories. Alternatively, you can build them manually, individually, and link with any curses library; e.g., "cc -lcurses -orain rain.c". There are no dependencies besides curses and the standard C library, and no configuration is needed.

Distribution Status

Public Domain, except for rain.c and worm.c, which are under the ncurses license (MIT-like).