interrogate_terminfo: placeholders for cursor

always get the cursor location from query responses,
so that we load u7 into the escape table even though
it wasn't found in terminfo. this is needed on freebsd,
where termcap doesn't seem to have u7 in it.
pull/1867/head
nick black 3 years ago
parent 4ed41259c9
commit bc213921be
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -651,9 +651,14 @@ int interrogate_terminfo(tinfo* ti, int fd, const char* termname, unsigned utf8,
}
}
unsigned appsync_advertised = 0;
if(cursor_x && cursor_y){
*cursor_x = *cursor_y = 0;
int foolcursor_x, foolcursor_y;
if(!cursor_x){
cursor_x = &foolcursor_x;
}
if(!cursor_y){
cursor_y = &foolcursor_y;
}
*cursor_x = *cursor_y = 0;
if(ncinputlayer_init(ti, stdin, &qterm, &appsync_advertised, cursor_y, cursor_x)){
goto err;
}

Loading…
Cancel
Save