ref: c9debbb1ceabdea48df609a9db2025265fa65c51
parent: 0f569394d14600cabf36349e77f64a42469d8229
author: Simon Howard <[email protected]>
date: Mon Nov 9 18:30:34 EST 2015
Set the window title for command prompt. This is a bit more interesting than just displaying "tempscript.sh".
--- 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;
@@ -182,6 +183,9 @@
fprintf(stream, "DOOMWADPATH=\"%s\"\n", 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: