|
|
@ -69,19 +69,12 @@ apply_term_heuristics(tinfo* ti, const char* termname){
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// there are some capabilities that we want, but can work around. if the
|
|
|
|
|
|
|
|
// logging level is set to "warn" or higher, go ahead and complain.
|
|
|
|
|
|
|
|
void warn_terminfo(const notcurses* nc, const tinfo* ti){
|
|
|
|
|
|
|
|
if(!ti->hpa){
|
|
|
|
|
|
|
|
logwarn(nc, "No horizontal position absolute capability");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// termname is just the TERM environment variable. some details are not
|
|
|
|
// termname is just the TERM environment variable. some details are not
|
|
|
|
// exposed via terminfo, and we must make heuristic decisions based on
|
|
|
|
// exposed via terminfo, and we must make heuristic decisions based on
|
|
|
|
// the detected terminal type, yuck :/.
|
|
|
|
// the detected terminal type, yuck :/.
|
|
|
|
int interrogate_terminfo(tinfo* ti, const char* termname){
|
|
|
|
int interrogate_terminfo(tinfo* ti, const char* termname, unsigned utf8){
|
|
|
|
memset(ti, 0, sizeof(*ti));
|
|
|
|
memset(ti, 0, sizeof(*ti));
|
|
|
|
|
|
|
|
ti->utf8 = utf8;
|
|
|
|
ti->RGBflag = query_rgb();
|
|
|
|
ti->RGBflag = query_rgb();
|
|
|
|
int colors = tigetnum("colors");
|
|
|
|
int colors = tigetnum("colors");
|
|
|
|
if(colors <= 0){
|
|
|
|
if(colors <= 0){
|
|
|
|