[windows] use GetConsoleScreenBufferInfo whenever we have handles

pull/2250/head
nick black 3 years ago
parent bee03d5b60
commit 7d82b6f067

@ -1056,7 +1056,6 @@ char* termdesc_longterm(const tinfo* ti){
// user input looking at infd.
int locate_cursor(tinfo* ti, int* cursor_y, int* cursor_x){
#ifdef __MINGW64__
if(ti->qterm == TERMINAL_MSTERMINAL){
if(ti->outhandle){
CONSOLE_SCREEN_BUFFER_INFO conbuf;
if(!GetConsoleScreenBufferInfo(ti->outhandle, &conbuf)){
@ -1068,7 +1067,6 @@ int locate_cursor(tinfo* ti, int* cursor_y, int* cursor_x){
loginfo("got a report from y=%d x=%d\n", *cursor_y, *cursor_x);
return 0;
}
}
#endif
const char* u7 = get_escape(ti, ESCAPE_U7);
if(u7 == NULL){

Loading…
Cancel
Save