From f75779f448fcc869ca2dbf0e403040904a1dc8cb Mon Sep 17 00:00:00 2001 From: William McBrine Date: Thu, 16 Feb 2006 21:51:30 +0000 Subject: [PATCH] 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.) --- demos/README | 17 +++++++++++++++++ demos/firework.c | 20 +------------------- demos/newdemo.c | 20 +------------------- demos/ptest.c | 20 +------------------- demos/testcurs.c | 20 +------------------- demos/tui.c | 20 +------------------- demos/tui.h | 18 ------------------ demos/tuidemo.c | 20 +------------------- demos/xmas.c | 22 ++-------------------- 9 files changed, 25 insertions(+), 152 deletions(-) create mode 100644 demos/README diff --git a/demos/README b/demos/README new file mode 100644 index 00000000..96643301 --- /dev/null +++ b/demos/README @@ -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. diff --git a/demos/firework.c b/demos/firework.c index 862994c9..b1861966 100644 --- a/demos/firework.c +++ b/demos/firework.c @@ -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 #include #include @@ -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); diff --git a/demos/newdemo.c b/demos/newdemo.c index 673c7408..2a46b8d9 100644 --- a/demos/newdemo.c +++ b/demos/newdemo.c @@ -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); diff --git a/demos/ptest.c b/demos/ptest.c index 3a052f9a..58e38643 100644 --- a/demos/ptest.c +++ b/demos/ptest.c @@ -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 diff --git a/demos/testcurs.c b/demos/testcurs.c index 362756d0..d7dfc175 100644 --- a/demos/testcurs.c +++ b/demos/testcurs.c @@ -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 diff --git a/demos/tui.c b/demos/tui.c index 89d20740..e3a04585 100644 --- a/demos/tui.c +++ b/demos/tui.c @@ -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__) diff --git a/demos/tui.h b/demos/tui.h index 2e5e6da0..7cc230d7 100644 --- a/demos/tui.h +++ b/demos/tui.h @@ -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) diff --git a/demos/tuidemo.c b/demos/tuidemo.c index 825e36fa..d7083f0f 100644 --- a/demos/tuidemo.c +++ b/demos/tuidemo.c @@ -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) diff --git a/demos/xmas.c b/demos/xmas.c index cca8e346..32868440 100644 --- a/demos/xmas.c +++ b/demos/xmas.c @@ -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;