repo.or.cz
/
netsniff-ng.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
netsniff-ng: Add cooked cmdline option.
[netsniff-ng.git]
/
screen.c
blob
34b27f3cca1da47c576ae746bbf3a7f17de22916
1
#include <curses.h>
2
3
#include
"screen.h"
4
5
WINDOW
*
screen_init
(
bool
israw
)
6
{
7
WINDOW
*
screen
=
initscr
();
8
9
if
(
israw
)
10
raw
();
11
noecho
();
12
cbreak
();
13
nodelay
(
screen
,
TRUE
);
14
keypad
(
stdscr
,
TRUE
);
15
refresh
();
16
wrefresh
(
screen
);
17
18
return
screen
;
19
}
20
21
void
screen_end
(
void
)
22
{
23
endwin
();
24
}