aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/lrtest.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-08-24 01:06:48 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-08-24 01:06:48 +0000
commit0e3d540892016a47f6a68ec9ba2879d35ce5f7c2 (patch)
treead214c5b2c8142ad6dc6d2ce3a9c83e6317d7f77 /contrib/ncurses/test/lrtest.c
downloadsrc-0e3d540892016a47f6a68ec9ba2879d35ce5f7c2.tar.gz
src-0e3d540892016a47f6a68ec9ba2879d35ce5f7c2.zip
Import unmodified (but trimmed) ncurses 5.0 prerelease 990821.vendor/ncurses/5.0-19990821
This contains the full eti (panel, form, menu) extensions. bmake glue to follow. Obtained from: ftp://ftp.clark.net/pub/dickey/ncurses
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=50276 svn path=/vendor/ncurses/5.0-19990821/; revision=50278; tag=vendor/ncurses/5.0-19990821
Diffstat (limited to 'contrib/ncurses/test/lrtest.c')
-rw-r--r--contrib/ncurses/test/lrtest.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/contrib/ncurses/test/lrtest.c b/contrib/ncurses/test/lrtest.c
new file mode 100644
index 000000000000..893e1cde9e7c
--- /dev/null
+++ b/contrib/ncurses/test/lrtest.c
@@ -0,0 +1,49 @@
+/*
+ * Test lower-right-hand corner access
+ *
+ * by Eric S. Raymond <esr@thyrsus.com>
+ *
+ * This can't be part of the ncurses test-program, because ncurses rips off the
+ * bottom line to do labels.
+ *
+ * $Id: lrtest.c,v 0.7 1998/02/12 23:49:11 tom Exp $
+ */
+
+#include <test.priv.h>
+
+int
+main(
+ int argc GCC_UNUSED,
+ char *argv[] GCC_UNUSED)
+{
+ initscr();
+
+ move(LINES/2-1, 4);
+ if (!has_ic())
+ {
+ addstr("Your terminal lacks the capabilities needed to address the\n");
+ move(LINES/2, 4);
+ addstr("lower-right-hand corner of the screen.\n");
+ }
+ else
+ {
+ addstr("This is a test of access to the lower right corner.\n");
+ move(LINES/2, 4);
+ addstr("If the top of the box is missing, the test failed.\n");
+ move(LINES/2+1, 4);
+ addstr("Please report this (with a copy of your terminfo entry).\n");
+ move(LINES/2+2, 4);
+ addstr("to the ncurses maintainers, at bug-ncurses@gnu.org.\n");
+ }
+
+ box(stdscr, 0, 0);
+ move(LINES-1, COLS-1);
+
+ refresh();
+
+ getch();
+ endwin();
+ return 0;
+}
+
+/* lrtest.c ends here */