Posix_InitConsoleInput(): Accept everything that starts with "xterm-"

no matter if it's xterm-color or xterm-256color or whatever
This commit is contained in:
Daniel Gibson 2021-01-16 05:34:58 +01:00
parent 8f467d678b
commit 117f0948e4

View file

@ -521,7 +521,8 @@ void Posix_InitConsoleInput( void ) {
// check the terminal type for the supported ones
char *term = getenv( "TERM" );
if ( term ) {
if ( strcmp( term, "linux" ) && strcmp( term, "xterm" ) && strcmp( term, "xterm-color" ) && strcmp( term, "screen" ) ) {
if ( strcmp( term, "linux" ) != 0 && strcmp( term, "xterm" ) != 0
&& idStr::Cmpn( term, "xterm-", 6 ) != 0 && strcmp( term, "screen" ) != 0) {
Sys_Printf( "WARNING: terminal type '%s' is unknown. terminal support may not work correctly\n", term );
}
}