File: curs.c

package info (click to toggle)
netdiag 0.7-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,468 kB
  • ctags: 1,279
  • sloc: ansic: 12,973; makefile: 289; awk: 130; sh: 71
file content (32 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (12)
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
/*  curs.c is part of Statnet */
/* Statnet is protected under the GNU Public License (GPL2). */
/* Author: Jeroen Baekelandt (jeroenb@igwe.vub.ac.be)       */

#include <string.h>
#include <stdarg.h>
#include "curs.h"

void
init_curses ()
{
  initscr ();
#if 0
  nodelay (stdscr, TRUE);
#endif
  cbreak ();
  noecho ();
}


void
cleanup_curses ()
{
  endwin ();
}

void
clrscr ()
{
  erase ();
  refresh ();
}