-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newline characters are inserted into wordwrapped text #610
Comments
This is an updated copy of issue #143. I re-tested the latest available version of |
In input phase, (before you press Return key), it is hard to achieve this because Reline has dialog rendering. After Return key is pressed and input is confirmed, it's possible to re-render the whole input without word wrap. #595 will fix this. |
I will close this issue.
#595 was transferred #614. #614 has been merged.
We have no plans to implement this one. |
Description
I noticed that when entering text that is longer than 80 columns, the resulting word wrapped text has explicit newline characters inserted into it. This makes copying/pasting text from an IRB session into a text editor quite tedious.
Also note that only the input text which becomes word-wrapped contains the newline character. The output result which
irb
prints does not seem to contain any newline characters, and can be safely copy/pasted into a text editor as a single line.Steps To Reproduce
A
s greater than the width of the terminal:"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
irb 1.9.1 (2023-11-21)
Note that a newline character, presumably inserted by
irb
, was preserved after copy/pasting the word-wrapped String ofA
s.irb 0.9.6(09/06/30)
bash 5.2 (control)
I decided to test this against
bash
just to make sure it was not being caused bygnome-terminal
. As one would expect, if you enter a very lone command into bash, and copy/paste it into a text editor, it displays as a single line even though the terminal word-wraps it to 80 columns.Terminal Emulator
gnome-terminal
3.48.1 using VTE 0.72.2 +BIDI +GNUTLS +ICU +SYSTEMDThe text was updated successfully, but these errors were encountered: