aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/lrtest.c
blob: 893e1cde9e7c74ceba4178cf3dbf6b203450b076 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 */