mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
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:
17
demos/README
Normal file
17
demos/README
Normal 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.
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
20
demos/tui.c
20
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__)
|
||||
|
||||
18
demos/tui.h
18
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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
22
demos/xmas.c
22
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user