qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Add a gntversion header.
2018-11-22, Elliott Sales de Andrade
cfde50942723
Add a gntversion header.
I'd prefer to use configuration_data.merge_from and not bother with the
template, but we don't depend on meson 0.42.0 yet.
#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
;
}