termdesc: foot has undercurls since 1.18.0 (#2845)

References:

* https://codeberg.org/dnkl/foot/src/branch/master/CHANGELOG.md#1-18-0
* https://codeberg.org/dnkl/foot/pulls/1747
This commit is contained in:
Daniel Eklöf 2025-01-16 19:41:03 +01:00 committed by GitHub
parent bf5e78c48e
commit 25c08a3709
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -792,7 +792,8 @@ apply_vte_heuristics(tinfo* ti, size_t* tablelen, size_t* tableused){
} }
static const char* static const char*
apply_foot_heuristics(tinfo* ti, bool* forcesdm, bool* invertsixel){ apply_foot_heuristics(tinfo* ti, size_t *tablelen, size_t *tableused,
bool* forcesdm, bool* invertsixel){
ti->caps.sextants = true; ti->caps.sextants = true;
ti->caps.quadrants = true; ti->caps.quadrants = true;
ti->caps.rgb = true; ti->caps.rgb = true;
@ -800,6 +801,11 @@ apply_foot_heuristics(tinfo* ti, bool* forcesdm, bool* invertsixel){
if(compare_versions(ti->termversion, "1.8.2") < 0){ if(compare_versions(ti->termversion, "1.8.2") < 0){
*invertsixel = true; *invertsixel = true;
} }
if(compare_versions(ti->termversion, "1.18.0") >= 0){
if(add_smulx_escapes(ti, tablelen, tableused)){
return NULL;
}
}
return "foot"; return "foot";
} }
@ -982,7 +988,8 @@ apply_term_heuristics(tinfo* ti, const char* tname, queried_terminals_e qterm,
newname = apply_vte_heuristics(ti, tablelen, tableused); newname = apply_vte_heuristics(ti, tablelen, tableused);
break; break;
case TERMINAL_FOOT: case TERMINAL_FOOT:
newname = apply_foot_heuristics(ti, forcesdm, invertsixel); newname = apply_foot_heuristics(ti, tablelen, tableused,
forcesdm, invertsixel);
break; break;
case TERMINAL_TMUX: case TERMINAL_TMUX:
newname = "tmux"; // FIXME what, oh what to do with tmux? newname = "tmux"; // FIXME what, oh what to do with tmux?