aboutsummaryrefslogtreecommitdiff
path: root/tests/ncurses.c
blob: 23ef28d7e34dd1bfb1905d95bca1b77c3e964457 (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
#include <stdio.h>
#include <stdlib.h>
#include <ncurses.h>
#include <assert.h>


static WINDOW *wnd;

int
main(void)
{
  assert( (wnd = initscr()) != NULL );
  assert( start_color() == 0 );
  assert( init_pair(1, COLOR_BLACK, COLOR_WHITE) == 0 );
  assert( raw() == 0 );
  assert( keypad(wnd, TRUE) == 0 );
  assert( noecho() == 0 );
  assert( cbreak() == 0 );
  assert( printw("TESTEST") == 0 );
  assert( refresh() == 0 );
  assert( clear() == 0 );
  assert( delwin(wnd) == 0 );
  assert( endwin() == 0 );
  return 0;
}