libgnt/libgnt
Clone
Summary
Browse
Changes
Graph
Deprecate gnt_text_format_flag_to_chtype.
release-2.x.y
2020-07-30, Elliott Sales de Andrade
24e7edbf6b0d
Deprecate gnt_text_format_flag_to_chtype.
It's not used by Finch, and leaks internals.
Testing Done:
Compile only, search on Finch source code.
Reviewed at https://reviews.imfreedom.org/r/53/
#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
;
}