tlog icon indicating copy to clipboard operation
tlog copied to clipboard

Consider using control sequences for terminal resizing on playback

Open spbnick opened this issue 7 years ago • 7 comments

Apparently XTerm, and some other terminal emulators support control sequences for resizing the terminal window. Found in asciinema/asciinema#198. Most of the terminals appear to require explicit enabling of this feature, as it can be abused.

However, we can provide that option in tlog-play, and insert these sequences into the output when reading the resize entries, so that users who wish to use XTerm, or gnome-terminal, and see resizes can do that.

spbnick avatar May 26 '17 12:05 spbnick

To allow window operations for a single xterm instance this command line can be used:

uxterm -xrm 'xterm*allowWindowOps: true'

spbnick avatar May 26 '17 12:05 spbnick

Then a command line like this can be used to try to resize the xterm window:

echo -ne '\e[8;60;120t'

This command resizes it to 120x60 characters.

spbnick avatar May 26 '17 12:05 spbnick

@spbnick could you ban that guy ? he did same spam in asciinema project

XANi avatar Sep 01 '17 12:09 XANi

Yeah, I know, he mentioned me, but I wouldn't ban somebody for just being silly, unless they persist.

spbnick avatar Sep 01 '17 12:09 spbnick

Y'all can use https://github.com/contact/report-abuse?report=timofonic+(user) to report their behaviour to github though.

sigmavirus24 avatar Sep 01 '17 23:09 sigmavirus24

Thank you, Ian.

spbnick avatar Sep 02 '17 08:09 spbnick