support DCS ASU in kitty/vte/iterm/alacritty without discovery #1845

pull/1859/head
nick black 3 years ago
parent fe6ef441bc
commit c4901c84a2
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -352,6 +352,10 @@ apply_term_heuristics(tinfo* ti, const char* termname, int fd,
if(add_smulx_escapes(ti, tablelen, tableused)){
return -1;
}
// kitty implements DCS ASU, but no detection for it
if(add_appsync_escapes(ti, tablelen, tableused)){
return -1;
}
// kitty only introduced C=1 in 0.20.0
if(compare_versions(ti->termversion, "0.20.0") < 0){
ti->sixel_maxy_pristine = INT_MAX;
@ -361,6 +365,10 @@ apply_term_heuristics(tinfo* ti, const char* termname, int fd,
ti->caps.quadrants = true;
// ti->caps.sextants = true; // alacritty https://github.com/alacritty/alacritty/issues/4409 */
ti->caps.rgb = true;
// Alacritty implements DCS ASU, but no detection for it
if(add_appsync_escapes(ti, tablelen, tableused)){
return -1;
}
}else if(qterm == TERMINAL_VTE){
termname = "VTE";
ti->caps.quadrants = true;
@ -368,6 +376,10 @@ apply_term_heuristics(tinfo* ti, const char* termname, int fd,
if(add_smulx_escapes(ti, tablelen, tableused)){
return -1;
}
// VTE implements DCS ASU, but no detection for it
if(add_appsync_escapes(ti, tablelen, tableused)){
return -1;
}
}else if(qterm == TERMINAL_FOOT){
termname = "foot";
ti->caps.sextants = true;
@ -394,6 +406,11 @@ apply_term_heuristics(tinfo* ti, const char* termname, int fd,
termname = "Contour";
ti->caps.quadrants = true;
ti->caps.rgb = true;
}else if(qterm == TERMINAL_ITERM){
// iTerm implements DCS ASU, but no detection for it
if(add_appsync_escapes(ti, tablelen, tableused)){
return -1;
}
}else if(qterm == TERMINAL_LINUX){
struct utsname un;
if(uname(&un) == 0){

Loading…
Cancel
Save