[Bug 263084] vt: Paste pads from EOL to end of screen with whitespace characters

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 06 Apr 2022 15:35:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263084

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|vt newcons: Paste pads from |vt: Paste pads from EOL to
                   |EOL to end of screen with   |end of screen with
                   |whitespace characters       |whitespace characters
                 CC|                            |emaste@freebsd.org

--- Comment #1 from Ed Maste <emaste@freebsd.org> ---
Can you try this with sc(4) (and a 80 col wide terminal):

$ printf
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nx\n'

then copy and paste, and report whether it is three or four lines? xterm
handles this correctly (as an 81-char line, and then two at 79 and 1).

My suspicion is that sc(4) just strips trailing whitespace, which is not quite
correct but preferable.

-- 
You are receiving this mail because:
You are the assignee for the bug.