[terminfo] on windows init failure, print panic diagnostic

This commit is contained in:
nick black 2021-10-09 02:42:52 -04:00
parent 685422dbab
commit bee03d5b60
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -753,6 +753,7 @@ int interrogate_terminfo(tinfo* ti, const char* termtype, FILE* out, unsigned ut
logwarn("termtype (%s) ignored on windows\n", termtype);
}
if(prepare_windows_terminal(ti, &tablelen, &tableused)){
logpanic("failed opening Windows ConPTY\n");
return -1;
}
if(cursor_y && cursor_x){