Removed boilerplate from demos, added README. (Most of the demos

originated outside PDCurses, and are already labelled appropriately. To
Do: Still need to check on the status/origins of some of these.)
This commit is contained in:
William McBrine
2006-02-16 21:51:30 +00:00
parent b1ebb5fcfc
commit f75779f448
9 changed files with 25 additions and 152 deletions

17
demos/README Normal file
View File

@@ -0,0 +1,17 @@
Welcome to PDCurses
Contents
--------
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).
Distribution Status
-------------------
Public Domain, unless noted otherwise in the source.

View File

@@ -1,21 +1,3 @@
/**************************************************************************
* This file comprises part of PDCurses. PDCurses is Public Domain software.
* You may use this code for whatever purposes you desire. This software
* is provided AS IS with NO WARRANTY whatsoever.
* Should this software be used in another application, an acknowledgement
* that PDCurses code is used would be appreciated, but is not mandatory.
*
* Any changes which you make to this software which may improve or enhance
* it, should be forwarded to the current maintainer for the benefit of
* other users.
*
* The only restriction placed on this code is that no distribution of
* modified PDCurses code be made under the PDCurses name, by anyone
* other than the current maintainer.
*
* See the file maintain.er for details of the current maintainer.
**************************************************************************/
#include <stdio.h>
#include <signal.h>
#include <curses.h>
@@ -28,7 +10,7 @@
#ifdef PDCDEBUG
const char *rcsid_firework =
"$Id: firework.c,v 1.18 2006/02/13 17:18:05 wmcbrine Exp $";
"$Id: firework.c,v 1.19 2006/02/16 21:51:30 wmcbrine Exp $";
#endif
void myrefresh(void);

View File

@@ -1,21 +1,3 @@
/**************************************************************************
* This file comprises part of PDCurses. PDCurses is Public Domain software.
* You may use this code for whatever purposes you desire. This software
* is provided AS IS with NO WARRANTY whatsoever.
* Should this software be used in another application, an acknowledgement
* that PDCurses code is used would be appreciated, but is not mandatory.
*
* Any changes which you make to this software which may improve or enhance
* it, should be forwarded to the current maintainer for the benefit of
* other users.
*
* The only restriction placed on this code is that no distribution of
* modified PDCurses code be made under the PDCurses name, by anyone
* other than the current maintainer.
*
* See the file maintain.er for details of the current maintainer.
**************************************************************************/
/*
* newdemo.c - A demo program using PDCurses. The program
* illustrates the use of colours for text output.
@@ -32,7 +14,7 @@
#ifdef PDCDEBUG
const char *rcsid_newdemo =
"$Id: newdemo.c,v 1.24 2006/02/13 17:18:05 wmcbrine Exp $";
"$Id: newdemo.c,v 1.25 2006/02/16 21:51:30 wmcbrine Exp $";
#endif
int WaitForUser(void);

View File

@@ -1,28 +1,10 @@
/**************************************************************************
* This file comprises part of PDCurses. PDCurses is Public Domain software.
* You may use this code for whatever purposes you desire. This software
* is provided AS IS with NO WARRANTY whatsoever.
* Should this software be used in another application, an acknowledgement
* that PDCurses code is used would be appreciated, but is not mandatory.
*
* Any changes which you make to this software which may improve or enhance
* it, should be forwarded to the current maintainer for the benefit of
* other users.
*
* The only restriction placed on this code is that no distribution of
* modified PDCurses code be made under the PDCurses name, by anyone
* other than the current maintainer.
*
* See the file maintain.er for details of the current maintainer.
**************************************************************************/
/*+-------------------------------------------------------------------------
ptest.c
--------------------------------------------------------------------------*/
#ifdef PDCDEBUG
const char *rcsid_ptest =
"$Id: ptest.c,v 1.17 2006/02/13 17:18:05 wmcbrine Exp $";
"$Id: ptest.c,v 1.18 2006/02/16 21:51:30 wmcbrine Exp $";
#endif
#include <curses.h>

View File

@@ -1,21 +1,3 @@
/**************************************************************************
* This file comprises part of PDCurses. PDCurses is Public Domain software.
* You may use this code for whatever purposes you desire. This software
* is provided AS IS with NO WARRANTY whatsoever.
* Should this software be used in another application, an acknowledgement
* that PDCurses code is used would be appreciated, but is not mandatory.
*
* Any changes which you make to this software which may improve or enhance
* it, should be forwarded to the current maintainer for the benefit of
* other users.
*
* The only restriction placed on this code is that no distribution of
* modified PDCurses code be made under the PDCurses name, by anyone
* other than the current maintainer.
*
* See the file maintain.er for details of the current maintainer.
**************************************************************************/
/*
* This is a test program for the PDCurses screen package for IBM PC type
* machines.
@@ -28,7 +10,7 @@
#ifdef PDCDEBUG
# define CURSES_LIBRARY /* needed for the prototype of PDC_debug */
const char *rcsid_testcurs =
"$Id: testcurs.c,v 1.35 2006/02/13 17:18:05 wmcbrine Exp $";
"$Id: testcurs.c,v 1.36 2006/02/16 21:51:30 wmcbrine Exp $";
#endif
#include <stdio.h>

View File

@@ -1,21 +1,3 @@
/**************************************************************************
* This file comprises part of PDCurses. PDCurses is Public Domain software.
* You may use this code for whatever purposes you desire. This software
* is provided AS IS with NO WARRANTY whatsoever.
* Should this software be used in another application, an acknowledgement
* that PDCurses code is used would be appreciated, but is not mandatory.
*
* Any changes which you make to this software which may improve or enhance
* it, should be forwarded to the current maintainer for the benefit of
* other users.
*
* The only restriction placed on this code is that no distribution of
* modified PDCurses code be made under the PDCurses name, by anyone
* other than the current maintainer.
*
* See the file maintain.er for details of the current maintainer.
**************************************************************************/
/********************************* tui.c ************************************/
/*
* File : tui.c 'textual user interface'
@@ -37,7 +19,7 @@ void rmerror(void);
#ifdef PDCDEBUG
const char *rcsid_tui =
"$Id: tui.c,v 1.17 2006/02/13 17:18:05 wmcbrine Exp $";
"$Id: tui.c,v 1.18 2006/02/16 21:51:30 wmcbrine Exp $";
#endif
#if defined(__unix) && !defined(__DJGPP__)

View File

@@ -1,21 +1,3 @@
/**************************************************************************
* This file comprises part of PDCurses. PDCurses is Public Domain software.
* You may use this code for whatever purposes you desire. This software
* is provided AS IS with NO WARRANTY whatsoever.
* Should this software be used in another application, an acknowledgement
* that PDCurses code is used would be appreciated, but is not mandatory.
*
* Any changes which you make to this software which may improve or enhance
* it, should be forwarded to the current maintainer for the benefit of
* other users.
*
* The only restriction placed on this code is that no distribution of
* modified PDCurses code be made under the PDCurses name, by anyone
* other than the current maintainer.
*
* See the file maintain.er for details of the current maintainer.
**************************************************************************/
/*
* File : tui.h 'textual user interface'
* Author : P.J. Kunst (kunst@prl.philips.nl)

View File

@@ -1,21 +1,3 @@
/**************************************************************************
* This file comprises part of PDCurses. PDCurses is Public Domain software.
* You may use this code for whatever purposes you desire. This software
* is provided AS IS with NO WARRANTY whatsoever.
* Should this software be used in another application, an acknowledgement
* that PDCurses code is used would be appreciated, but is not mandatory.
*
* Any changes which you make to this software which may improve or enhance
* it, should be forwarded to the current maintainer for the benefit of
* other users.
*
* The only restriction placed on this code is that no distribution of
* modified PDCurses code be made under the PDCurses name, by anyone
* other than the current maintainer.
*
* See the file maintain.er for details of the current maintainer.
**************************************************************************/
/********************************* tuidemo.c ********************************/
/*
* File : tuidemo.c
@@ -40,7 +22,7 @@
#ifdef PDCDEBUG
const char *rcsid_tuidemo =
"$Id: tuidemo.c,v 1.11 2006/02/05 23:54:31 wmcbrine Exp $";
"$Id: tuidemo.c,v 1.12 2006/02/16 21:51:30 wmcbrine Exp $";
#endif
#if defined(XCURSES)

View File

@@ -1,21 +1,3 @@
/**************************************************************************
* This file comprises part of PDCurses. PDCurses is Public Domain software.
* You may use this code for whatever purposes you desire. This software
* is provided AS IS with NO WARRANTY whatsoever.
* Should this software be used in another application, an acknowledgement
* that PDCurses code is used would be appreciated, but is not mandatory.
*
* Any changes which you make to this software which may improve or enhance
* it, should be forwarded to the current maintainer for the benefit of
* other users.
*
* The only restriction placed on this code is that no distribution of
* modified PDCurses code be made under the PDCurses name, by anyone
* other than the current maintainer.
*
* See the file maintain.er for details of the current maintainer.
**************************************************************************/
/******************************************************************************/
/* asciixmas */
/* December 1989 Larry Bartz Indianapolis, IN */
@@ -96,7 +78,7 @@
#ifdef PDCDEBUG
const char *rcsid_xmas =
"$Id: xmas.c,v 1.18 2006/02/13 17:18:05 wmcbrine Exp $";
"$Id: xmas.c,v 1.19 2006/02/16 21:51:30 wmcbrine Exp $";
#endif
/* NOMACROS makes a big difference in the size with PDCurses */
@@ -122,7 +104,7 @@ void strng5(void);
void blinkit(void);
void reindeer(void);
#define FROMWHO "Mark Hessling - (M.Hessling@qut.edu.au)"
#define FROMWHO "From Larry Bartz, Mark Hessling and William McBrine"
int y_pos, x_pos;