]> ncurses.scripts.mit.edu Git - ncurses.git/blob - test/lrtest.c
ncurses 4.1
[ncurses.git] / test / lrtest.c
1 /*
2  * Test lower-right-hand corner access
3  *
4  * by Eric S. Raymond <esr@thyrsus.com>
5  *
6  * This can't be part of the ncurses test-program, because ncurses rips off the
7  * bottom line to do labels.
8  *
9  * $Id: lrtest.c,v 0.6 1997/04/26 23:47:42 tom Exp $
10  */
11
12 #include <test.priv.h>
13
14 int
15 main(
16         int argc GCC_UNUSED,
17         char *argv[] GCC_UNUSED)
18 {
19     initscr();
20
21     move(LINES/2-1, 4);
22     if (!has_ic())
23     {
24         addstr("Your terminal lacks the capabilities needed to address the\n");
25         move(LINES/2, 4);
26         addstr("lower-right-hand corner of the screen.\n");
27     }
28     else
29     {
30         addstr("This is a test of access to the lower right corner.\n");
31         move(LINES/2, 4);
32         addstr("If the top of the box is missing, the test failed.\n");
33         move(LINES/2+1, 4);
34         addstr("Please report this (with a copy of your terminfo entry).\n");
35         move(LINES/2+2, 4);
36         addstr("to the ncurses maintainers, at ncurses@bsdi.com.\n");
37     }
38
39     box(stdscr, 0, 0);
40     move(LINES-1, COLS-1);
41
42     refresh();
43
44     getch();
45     endwin();
46     return 0;
47 }
48
49 /* lrtest.c ends here */