]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/pterm.c
Bah. Stop the Proxy panel appearing empty in Change Settings. One
[PuTTY.git] / unix / pterm.c
index 751db8e7ac8f3c3e5ab7bafa8be67eb3c1bcfbc6..b9c88fb122b567a965e3625b2e6ec5f9bab37b1a 100644 (file)
@@ -2116,6 +2116,17 @@ int do_cmdline(int argc, char **argv, int do_everything,
        char *p = *++argv;
         int ret;
 
+       /*
+        * Shameless cheating. Debian requires all X terminal
+        * emulators to support `-T title'; but
+        * cmdline_process_param will eat -T (it means no-pty) and
+        * complain that pterm doesn't support it. So, in pterm
+        * only, we convert -T into -title.
+        */
+       if ((cmdline_tooltype & TOOLTYPE_NONNETWORK) &&
+           !strcmp(p, "-T"))
+           p = "-title";
+
         ret = cmdline_process_param(p, (argc > 1 ? argv[1] : NULL),
                                     do_everything ? 1 : -1, cfg);