mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-17 19:18:06 -05:00
Reinstate `-T title', in pterm only.
[originally from svn r3165]
This commit is contained in:
parent
03fa61025b
commit
24d6da8041
11
unix/pterm.c
11
unix/pterm.c
@ -2116,6 +2116,17 @@ int do_cmdline(int argc, char **argv, int do_everything,
|
|||||||
char *p = *++argv;
|
char *p = *++argv;
|
||||||
int ret;
|
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),
|
ret = cmdline_process_param(p, (argc > 1 ? argv[1] : NULL),
|
||||||
do_everything ? 1 : -1, cfg);
|
do_everything ? 1 : -1, cfg);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user