mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
termdesc: disable octants if libc lacks support for unicode 16
This commit is contained in:
parent
531bdd0e8b
commit
054e31cc34
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user