Open movsb opened 3 years ago
@movsb Thank you for reporting this! Could you file a PR on this issue? Thank you!
@derailed Will do it after the Chinese National Day. Thank you.✈️
+1
Steps to reproduce issue:
kubetcl exec -it pod-name bash
echo 'a really long line of text that overflows onto second line'
# copy the multi-line text in terminal
# expected: clipboard contains a single line copied
# actual: clipboard contains newline where the line break occurred
Describe the bug
Can refer to this k8s issue: https://github.com/kubernetes/kubernetes/issues/47990
Still not fixed, both on My MacOS and Ubuntu.
To Reproduce
After being shell into a pod, the dimensions of the window size is fixed to 80x24, which is not initially equal to my terminal window size 195x41.
Now type in the command line, characters are wrapped into the same line and overwrite previous output. (See those zeros.)
Expected behavior A clear and concise description of what you expected to happen.
If I use
env
to pass in theCOLUMNS
andLINES
environment variables, it's fixed. (Suggested by this )Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Additional context
Resizing the terminal window manually can fix this too.
How I fixed it locally