mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
direct poc: exit out on bad ncdirect_cursor_up()
This commit is contained in:
parent
e5b1c2cdea
commit
bcdf513e31
@ -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…
Reference in New Issue
Block a user