Skip to content

Commit

Permalink
Define checks for further $TERM values
Browse files Browse the repository at this point in the history
  • Loading branch information
unrealapex authored and BenBE committed Jun 28, 2024
1 parent 733acad commit 2b4feef
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CRT.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,24 @@ static bool terminalSupportsDefinedKeys(const char* termType) {
}

switch (termType[0]) {
case 'a':
if (String_eq(termType, "alacritty")) {
return true;
}
break;
case 's':
if (termType[1] == 't' && (termType[2] == '-' || !termType[2])) {
return true;
}
if (String_eq(termType, "screen")) {
return true;
}
break;
case 't':
if (String_eq(termType, "tmux")) {
return true;
}
break;
case 'v':
if (String_eq(termType, "vt220")) {
return true;
Expand Down

0 comments on commit 2b4feef

Please sign in to comment.