diff --git a/pkg/osx/Execute.m b/pkg/osx/Execute.m index bc5d8c56..2d5d5931 100644 --- a/pkg/osx/Execute.m +++ b/pkg/osx/Execute.m @@ -26,6 +26,7 @@ #define RESPONSE_FILE "/tmp/launcher.rsp" #define TEMP_SCRIPT "/tmp/tempscript.sh" +#define WINDOW_TITLE PACKAGE_STRING " command prompt" static char *executable_path; @@ -183,6 +184,9 @@ void OpenTerminalWindow(const char *doomwadpath) fprintf(stream, "export DOOMWADPATH\n"); fprintf(stream, "rm -f \"%s\"\n", TEMP_SCRIPT); + // Window title to something more interesting than "tempscript": + fprintf(stream, "echo -en \"\\033]0;%s\\a\"\n", WINDOW_TITLE); + // Display a useful message: fprintf(stream, "clear\n");