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.
![]() 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 | 3 years ago | |
curses.priv.h | 11 months ago | |
dates.txt | ||
firework.c | ||
init_col.c | 12 months ago | |
mbrot.c | 2 years ago | |
nctests.mif | 3 months ago | |
ncurses_cfg.h | 11 months ago | |
newtest.c | 2 years ago | |
ozdemo.c | 2 weeks ago | |
picsview.c | 5 days ago | |
ptest.c | 2 years ago | |
rain.c | ||
snprintf.c | 3 years ago | |
speed.c | 2 years ago | |
test_pan.c | 5 months ago | |
testcurs.c | 6 days ago | |
tui.c | ||
tui.h | ||
tuidemo.c | ||
version.c | 2 years ago | |
widetest.c | 1 year ago | |
worm.c | 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).