From fef9f789590b48cd5a6438ebfbefe84ce4b85115 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Tue, 8 Jan 2008 21:51:09 +0000 Subject: Fixed MVD recording problem while playback. Fixed data being written to MVD buffers even without dummy MVD client. Allow to specify up to 64 favorite servers via adrXX variables. Properly display servers without `hostname' or `mapname' infokeys. Set console title to display dedicated server hostname and port. Removed redundant `toggleconsole' from UI_PushMenu. Fixed AC_ParseQueryReply parsing message incorrectly. Fixed MVD_GameClientBeing setting cl->number instead of cl->slot. --- source/sys_unix.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/sys_unix.c') diff --git a/source/sys_unix.c b/source/sys_unix.c index 7836c7e..27898de 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -233,6 +233,17 @@ void Sys_ConsoleOutput( const char *string ) { Sys_ShowInput(); } +void Sys_SetConsoleTitle( const char *title ) { + char buffer[MAX_STRING_CHARS]; + int len; + + if( !tty_enabled ) { + return; + } + len = Com_sprintf( buffer, sizeof( buffer ), "\033]0;%s\007", title ); + FIFO_Write( &sys_output, buffer, len ); +} + /* ================= Sys_ParseInput -- cgit v1.2.3