netsniff-ng: Add cooked cmdline option.
[netsniff-ng.git] / screen.c
blob34b27f3cca1da47c576ae746bbf3a7f17de22916
1 #include <curses.h>
3 #include "screen.h"
5 WINDOW *screen_init(bool israw)
7 WINDOW *screen = initscr();
9 if (israw)
10 raw();
11 noecho();
12 cbreak();
13 nodelay(screen, TRUE);
14 keypad(stdscr, TRUE);
15 refresh();
16 wrefresh(screen);
18 return screen;
21 void screen_end(void)
23 endwin();