qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Fixes a crash when next_begin_word is called on trailing spaces at the
2008-06-06, Sadrul Habib Chowdhury
c311e3873c3b
Fixes a crash when next_begin_word is called on trailing spaces at the
end of an entry.
applied changes from 0b25c9dd3deaa5c16f7deff33c36af4812f2629a
through abef8860abbb7cbebfd89a34d86d43457c0b5caf
#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
;
}