Comment 5 for bug 311983

Revision history for this message
Thomas Dickey (dickey-his) wrote : Re: [Bug 311983] Re: Window title, DECRQSS security

On Sat, 12 Dec 2009, Paul Szabo wrote:

>>> xterm can't change it's title any more. ...
>> ... look at the control-right-mouse entry for "Enable Title Ops" ...
>
> Testing my own karmic machine: the xterm default "Allow Title Ops" is
> ticked, "Allow Window Ops" is not ticked. Apparently regardless of

allowTitleOps doesn't have an effect on retrieving the title.
That's controlled via allowWindowOps:

        allowTitleOps (class AllowTitleOps)
                Specifies whether control sequences that modify the window
                title or icon name should be allowed. The default is "true."

        allowWindowOps (class AllowWindowOps)
                Specifies whether extended window control sequences (as used in
                dtterm) should be allowed. These include several control
                sequences which manipulate the window size or position, as well
                as reporting these values and the title or icon name. Each of
                these can be abused in a script; curiously enough most terminal
                emulators that implement these restrict only a small part of
                the repertoire. For fine-tuning, see disallowedWindowOps. The
                default is "false."

(my recent changes in-filled some empty slots in the dtterm list, but did
not alter the allowTitleOps feature, since that was separate from dtterm).

> setting, using
> perl -e 'print "\e\]0;;bad-command;\a\e\[21t"'
> does not set the title; but with "Allow Window Ops" ticked, it echoes
> the bad command into the input buffer.
>
> Cheers, Paul
>
> Paul Szabo <email address hidden> http://www.maths.usyd.edu.au/u/psz/
> School of Mathematics and Statistics University of Sydney Australia
>
> --
> Window title, DECRQSS security
> https://bugs.launchpad.net/bugs/311983
> You received this bug notification because you are subscribed to xterm
> in ubuntu.
>

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net