mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-17 01:31:47 +00:00
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:
parent
8f467d678b
commit
117f0948e4
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue