qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Merged in strangeways/main/trac-16680 (pull request #269)
release-2.x.y
2017-09-29, Gary Kramlich
ae40ebbc9091
Merged in strangeways/main/trac-16680 (pull request #269)
Respect the original SIGWINCH's handler SA_SIGINFO field
Approved-by: Gary Kramlich
Approved-by: dx
#include
<ncurses.h>
int
main
()
{
int
ch
;
initscr
();
noecho
();
cbreak
();
refresh
();
WINDOW
*
win
=
newpad
(
20
,
30
);
box
(
win
,
0
,
0
);
prefresh
(
win
,
0
,
0
,
0
,
0
,
19
,
29
);
doupdate
();
while
((
ch
=
getch
()))
{
printw
(
"%d "
,
ch
);
refresh
();
}
endwin
();
return
0
;
}