summaryrefslogtreecommitdiffstats
path: root/lib/libncurses/TESTS/test.c
blob: f77f3a1e751e2d3acf31076595cbbdf1281707f5 (plain)
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

#include <ncurses.h>

main()
{
int x, y;

  initscr();
  cbreak();
  nodelay(stdscr, TRUE);

  for (y = 0; y < 43; y++)
  for (x =0; x < 132; x++) {
  move(y,x);
    printw("X");
    refresh();
    if (!getch()) {
    	beep();
    	sleep(1);
    }
  }

  nocbreak();
  endwin();
}


OpenPOWER on IntegriCloud