qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Use widget focus flag accessors.
release-2.x.y
2019-04-08, Elliott Sales de Andrade
5c1f4abb169b
Use widget focus flag accessors.
Also, add a getter for can-take-focus.
#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
;
}