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 af4a7c5d72
Avoid flickering in 'picsview'.
When you reset a color pair,  all instances of that color pair are
immediately redrawn.  In 'picsview',  each redraw began by resetting
color 16 and proceeding from there,  causing color pairs used by the
existing image to change.  This is now fixed.  We cycle through twice
as many color pairs as there are cells on the screen (LINE * COLS).
So whatever pairs are set for the 'new' image will _not_ have been
used by the 'old' one,  and no flickering of colors will occur.
5 days ago
..
README.md
UTF-8-demo.txt
calendar.c 'calendar' modified to work with negative years. Only of use to historians and astronomers, of course. 3 years ago
curses.priv.h Changes to support building of 'libform' (ncurses forms menu) and some associated ncurses demos 11 months ago
dates.txt
firework.c
init_col.c Borland Turbo-C uses 'putenv()', not '_putenv()'. 12 months ago
mbrot.c 'mbrot.c' : removed unused #define, made 'help' text clearer 2 years ago
nctests.mif Changes for ncurses test program building : those requiring the forms library (cardfile, demo_forms, dup_fields, form_driver_w) don't work in wide mode and are, at least for the nonce, excluded. 3 months ago
ncurses_cfg.h Changes to support building of 'libform' (ncurses forms menu) and some associated ncurses demos 11 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.) 2 years ago
ozdemo.c 'ozdemo' : improved ASCII map of Australia, and switched to a more visible color scheme (on some platforms, yellow on green is nearly invisible) 2 weeks ago
picsview.c Avoid flickering in 'picsview'. 5 days 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. 2 years ago
rain.c
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. 3 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. 2 years ago
test_pan.c make panel_hidden portable, prepare for release 5 months ago
testcurs.c 'testcurs' modified so that mouseinterval() can be set independently of the mouse event mask. Simplifies testing slightly. 6 days ago
tui.c
tui.h
tuidemo.c
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. 1 year 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.) 2 years ago
xmas.c

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).