termdesc: disable octants if libc lacks support for unicode 16

This commit is contained in:
nick black 2024-12-24 20:03:16 -05:00
parent 531bdd0e8b
commit 054e31cc34
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1046,6 +1046,10 @@ apply_term_heuristics(tinfo* ti, const char* tname, queried_terminals_e qterm,
if(wcwidth(L'🬸') < 0){
ti->caps.sextants = false;
}
// run a wcwidth(𜴀) to guarantee libc Unicode 16 support, independent of term
if(wcwidth(L'𜴀') < 0){
ti->caps.octants = false;
}
ti->termname = tname;
return 0;
}