direct poc: exit out on bad ncdirect_cursor_up()

This commit is contained in:
nick black 2020-05-19 09:08:10 -04:00
parent e5b1c2cdea
commit bcdf513e31
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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;