summaryrefslogtreecommitdiff
path: root/source/sys_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r--source/sys_unix.c11
1 files changed, 11 insertions, 0 deletions
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