mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
tdescs: ghostty always has quadrants and sextants #2833
This commit is contained in:
parent
82ead0e307
commit
8c02c30d6a
@ -741,6 +741,7 @@ apply_kitty_heuristics(tinfo* ti, size_t* tablelen, size_t* tableused){
|
|||||||
if(add_smulx_escapes(ti, tablelen, tableused)){
|
if(add_smulx_escapes(ti, tablelen, tableused)){
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
// FIXME we have problems using SELFREF; fix them!
|
||||||
/*if(compare_versions(ti->termversion, "0.22.1") >= 0){
|
/*if(compare_versions(ti->termversion, "0.22.1") >= 0){
|
||||||
setup_kitty_bitmaps(ti, ti->ttyfd, NCPIXEL_KITTY_SELFREF);
|
setup_kitty_bitmaps(ti, ti->ttyfd, NCPIXEL_KITTY_SELFREF);
|
||||||
}else*/ if(compare_versions(ti->termversion, "0.20.0") >= 0){
|
}else*/ if(compare_versions(ti->termversion, "0.20.0") >= 0){
|
||||||
@ -925,6 +926,13 @@ apply_konsole_heuristics(tinfo* ti){
|
|||||||
return "Konsole";
|
return "Konsole";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const char*
|
||||||
|
apply_ghostty_heuristics(tinfo* ti){
|
||||||
|
ti->caps.quadrants = true;
|
||||||
|
ti->caps.sextants = true;
|
||||||
|
return "ghostty";
|
||||||
|
}
|
||||||
|
|
||||||
static const char*
|
static const char*
|
||||||
apply_linux_heuristics(tinfo* ti, unsigned nonewfonts){
|
apply_linux_heuristics(tinfo* ti, unsigned nonewfonts){
|
||||||
const char* tname = NULL;
|
const char* tname = NULL;
|
||||||
@ -975,6 +983,7 @@ apply_term_heuristics(tinfo* ti, const char* tname, queried_terminals_e qterm,
|
|||||||
// setupterm interprets a missing/empty TERM variable as the special value “unknown”.
|
// setupterm interprets a missing/empty TERM variable as the special value “unknown”.
|
||||||
tname = ti->termname ? ti->termname : "unknown";
|
tname = ti->termname ? ti->termname : "unknown";
|
||||||
}
|
}
|
||||||
|
loginfo("tname is %s (qterm %d)", tname, qterm);
|
||||||
// st had neither caps.sextants nor caps.quadrants last i checked (0.8.4)
|
// st had neither caps.sextants nor caps.quadrants last i checked (0.8.4)
|
||||||
ti->caps.braille = true; // most everyone has working caps.braille, even from fonts
|
ti->caps.braille = true; // most everyone has working caps.braille, even from fonts
|
||||||
ti->caps.halfblocks = true; // most everyone has working halfblocks
|
ti->caps.halfblocks = true; // most everyone has working halfblocks
|
||||||
@ -1039,7 +1048,11 @@ apply_term_heuristics(tinfo* ti, const char* tname, queried_terminals_e qterm,
|
|||||||
case TERMINAL_KONSOLE:
|
case TERMINAL_KONSOLE:
|
||||||
newname = apply_konsole_heuristics(ti);
|
newname = apply_konsole_heuristics(ti);
|
||||||
break;
|
break;
|
||||||
|
case TERMINAL_GHOSTTY:
|
||||||
|
newname = apply_ghostty_heuristics(ti);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
|
logwarn("no match for qterm %d tname %s", qterm, tname);
|
||||||
newname = tname;
|
newname = tname;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user