You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Mike Jumper (Jira)" <ji...@apache.org> on 2022/04/21 03:14:00 UTC

[jira] [Commented] (GUACAMOLE-1586) SSH Extra line breaks occur when copying an excessively long single line of text

    [ https://issues.apache.org/jira/browse/GUACAMOLE-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17525396#comment-17525396 ] 

Mike Jumper commented on GUACAMOLE-1586:
----------------------------------------

It would be better if this were done differently, yes.

The behavior you're seeing is due to an implementation detail of Guacamole's terminal emulator. Newlines are not currently stored by the terminal emulator in a way that would allow it to remember whether a set of rows is all from the same logical line. Instead, newlines are re-added when copying to the clipboard to preserve the rows as rendered.

> SSH Extra line breaks occur when copying an excessively long single line of text
> --------------------------------------------------------------------------------
>
>                 Key: GUACAMOLE-1586
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1586
>             Project: Guacamole
>          Issue Type: Bug
>          Components: SSH
>    Affects Versions: 1.3.0, 1.4.0
>            Reporter: wengcy
>            Priority: Major
>         Attachments: image-2022-04-20-17-59-42-077.png, image-2022-04-20-18-01-08-629.png, image-2022-04-20-18-01-44-259.png, image-2022-04-20-18-02-18-557.png
>
>
> When I use SSH to access the remote client and open a one-line but very long text to copy, I paste it in the local notepad and find that I paste a few more line breaks unexpectedly.
> Like this:
> !image-2022-04-20-18-01-08-629.png!!image-2022-04-20-18-01-44-259.png!
> !image-2022-04-20-18-02-18-557.png!
> As you can see, this is a line of text, but when it's copied out, there are a few more newlines.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)