libgnt/libgnt
Clone
Summary
Browse
Changes
Graph
Add an option to disable python2 support
release-2.x.y
2021-09-23, Gary Kramlich
ec210e0a9332
Add an option to disable python2 support
Testing Done:
Compiled with no arguments, `-Dpython2=true`, and `-Dpython2=false` and verified the build was successful and was only linked to libpython2 when it should have been via ldd.
Bugs closed: LIBGNT-16
Reviewed at https://reviews.imfreedom.org/r/930/
#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
;
}