detect MinTTY with XTVERSION #2115

pull/2122/head
nick black 3 years ago
parent eaa67c1974
commit 0a959617c6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1081,6 +1081,7 @@ stash_string(query_state* inits){
{ .prefix = "mlterm(", .suffix = ')', .term = TERMINAL_MLTERM, },
{ .prefix = "tmux ", .suffix = 0, .term = TERMINAL_TMUX, },
{ .prefix = "iTerm2 ", .suffix = 0, .term = TERMINAL_ITERM, },
{ .prefix = "mintty ", .suffix = 0, .term = TERMINAL_MINTTY, },
{ .prefix = NULL, .suffix = 0, .term = TERMINAL_UNKNOWN, },
}, *xtv;
for(xtv = xtvers ; xtv->prefix ; ++xtv){

@ -34,6 +34,7 @@ typedef enum {
TERMINAL_TERMINOLOGY, // TDA: "~~TY"
TERMINAL_APPLE, // Terminal.App, determined by TERM_PROGRAM + macOS
TERMINAL_MSTERMINAL, // Microsoft Windows Terminal
TERMINAL_MINTTY, // XTVERSION == 'mintty ver' MinTTY (Cygwin, MSYS2)
} queried_terminals_e;
// sets up the input layer, building a trie of escape sequences and their

@ -555,6 +555,8 @@ apply_term_heuristics(tinfo* ti, const char* termname, queried_terminals_e qterm
return -1;
}
}
}else if(qterm == TERMINAL_MINTTY){
termname = "MinTTY";
}else if(qterm == TERMINAL_CONTOUR){
termname = "Contour";
ti->caps.quadrants = true;

Loading…
Cancel
Save