dot/shell-rc (__mdw_xterm_settitle): Use the correct control code.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 17 Apr 2023 09:57:34 +0000 (10:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 17 Apr 2023 09:57:34 +0000 (10:57 +0100)
Set the icon name too.  `pterm' apparently doesn't care.  Other
emulators might, I suppose.

dot/shell-rc

index b8bfb3d..33403cb 100644 (file)
@@ -175,7 +175,7 @@ __mdw_set_prompt () {
 
 __mdw_xterm_settitle () {
   printf >/dev/tty \
-    "\e]2;%s@%s:%s – %s\e\\" \
+    "\e]0;%s@%s:%s – %s\e\\" \
     "$__mdw_user" "$__mdw_host$__mdw_hqual" "$PWD" \
     "$1"
 }