direct poc: exit out on bad ncdirect_cursor_up()

pull/632/head
nick black 4 years ago
parent e5b1c2cdea
commit bcdf513e31
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -48,7 +48,9 @@ int main(void){
y += 2; // we just went down two lines
while(y > 3){
const int up = y >= 3 ? 3 : y;
ret |= ncdirect_cursor_up(n, up);
if(ncdirect_cursor_up(n, up)){
return EXIT_FAILURE;
}
fflush(stdout);
y -= up;
int newy;

Loading…
Cancel
Save