From: Simon Tatham Date: Tue, 6 May 2003 19:55:00 +0000 (+0000) Subject: Reinstate `-T title', in pterm only. X-Git-Tag: r8855-g4f798d~1404 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=248c39c9879f6cbc09bb32f16631c70ab8dad27c;p=PuTTY_svn.git Reinstate `-T title', in pterm only. git-svn-id: http://svn.tartarus.org/sgt/putty@3165 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/pterm.c b/unix/pterm.c index 751db8e7..b9c88fb1 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -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);