[konsole] [Bug 455851] Reflow doesn't work in case of showing the `version changes` in `zypper dup` on openSUSE TW
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Thu Nov 10 23:24:03 GMT 2022
https://bugs.kde.org/show_bug.cgi?id=455851
--- Comment #3 from ninjalj at gmail.com ---
script(1) is a utility to record a shell session into a file. If you just run
'script' with no arguments, script(1) will launch your default shell while
recording the input/output, as in the following transcript:
lj at panoramix ~ $ script
Script started, output log file is 'typescript'.
lj at panoramix ~ $ printf '\e[31mHello world\e[0m\n'
Hello world
lj at panoramix ~ $ exit
exit
Script done.
lj at panoramix ~ $
After exiting the inner shell spawned by script, the current working directory
will contain a file named by default 'typescript' which will contain _all_ the
input (including deleted characters and the backspaces that deleted them!) and
output to the session. If your system's 'cat' command supports the '-v' switch,
the real contents of the 'typescript' file can be viewed with it:
lj at panoramix ~ $ cat -v typescript
Script started on 2022-11-11 00:13:04+01:00 [TERM="xterm-256color"
TTY="/dev/pts/1" COLUMNS="197" LINES="47"]
^[[?2004h^[]0;lj at panoramix:~^G^[[01;32mlj at panoramix^[[01;34m ~ $^[[00m
exit^H^H^H^Hprintf '\e[31mHello world\e[0m\n'^M
^[[?2004l^M^[[31mHello world^[[0m^M
^[[?2004h^[]0;lj at panoramix:~^G^[[01;32mlj at panoramix^[[01;34m ~ $^[[00m exit^M
^[[?2004l^Mexit^M
Script done on 2022-11-11 00:13:10+01:00 [COMMAND_EXIT_CODE="0"]
lj at panoramix ~ $
On Linux, script(1) is typically included in the util-linux package, which will
be typically be installed as part of the base system. script(1) comes from
3BSD, so it is widely available on Unix-like systems. A newer alternative would
be asciinema, which allows creating nice screencasts.
So, in summary, if you can run zypper inside a script(1) session reproducing
the offending reflow behavior, and send the resulting 'typescript' file, it
would allow us to determine what exactly is zypper sending to the terminal.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list