diff options
Diffstat (limited to 'test/newdemo.c')
| -rw-r--r-- | test/newdemo.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/newdemo.c b/test/newdemo.c index 78761534d7c5..bbcb2bfe96c6 100644 --- a/test/newdemo.c +++ b/test/newdemo.c @@ -2,7 +2,7 @@ * newdemo.c - A demo program using PDCurses. The program illustrate * the use of colours for text output. * - * $Id: newdemo.c,v 1.48 2022/12/10 23:36:05 tom Exp $ + * $Id: newdemo.c,v 1.50 2025/07/05 15:11:35 tom Exp $ */ #include <test.priv.h> @@ -250,11 +250,8 @@ main(int argc, char *argv[]) while ((ch = getopt(argc, argv, OPTS_COMMON)) != -1) { switch (ch) { - case OPTS_VERSION: - show_version(argv); - ExitProgram(EXIT_SUCCESS); default: - usage(ch == OPTS_USAGE); + CASE_COMMON; /* NOTREACHED */ } } @@ -288,7 +285,7 @@ main(int argc, char *argv[]) set_colors(win, 2, COLOR_RED, COLOR_RED); box(win, ACS_VLINE, ACS_HLINE); wrefresh(win); - /* Do ramdom output of a character */ + /* Do random output of a character */ use_colors(win, 1, A_NORMAL); c = 'a'; for (i = 0; i < 5000; ++i) { |
