Description of problem:
Unneeded spaces when copying content from terminal in web console.
Very inconvenient if user wants to copy the original content.
CLI terminal from oc rsh does not has the issue.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. On web console pod page, in Terminal Tab, execute 'cat /etc/hosts', then copy the output of the `cat` cmd, paste it in 'vi'.
1. In vi, the pasted stuff has unneeded spaces after each line, like:
# Kubernetes-managed hosts file. * Here is the end of the unneeded spaces! Same below. *
::1 localhost ip6-localhost ip6-loopback
1. Should have no the unneeded spaces, lines.
Created attachment 1221065 [details]
PS: The bugzilla shows 'fe00::0 ip6-localnet', and so on, in 2 lines, because ip6-localnet has too many trailing spaces, thus the browser adjusts it so.
I'm fairly certain this is a side effect of how the terminal widget we use works, I'm not sure there is anything we can do to fix this behavior aside from finding a different in-browser terminal to use.
This appears to be fixed with xterm.js.
Verified in v3.7.0-0.143.1 with original steps. Issue is fixed, now no unneeded spaces
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.