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/07/06 06:36:00 UTC

[jira] [Commented] (GUACAMOLE-1633) 【SSH】Exceptions occur when using vim, top, and other commands to roll back the buffer

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

Mike Jumper commented on GUACAMOLE-1633:
----------------------------------------

The behavior you describe is not due to a bug, but a console code sequence that is not currently implemented: the alternate screen buffer. See: https://stackoverflow.com/questions/11023929/using-the-alternate-screen-in-a-bash-script

> 【SSH】Exceptions occur when using vim, top, and other commands to roll back the buffer
> -------------------------------------------------------------------------------------
>
>                 Key: GUACAMOLE-1633
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1633
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole
>    Affects Versions: 1.2.0
>            Reporter: wengcy
>            Priority: Major
>         Attachments: image-2022-07-06-14-08-38-966.png, image-2022-07-06-14-11-02-204.png, image-2022-07-06-14-18-23-551.png
>
>
> In SSH sessions, when you run vim, top, etc., the displayed data overwrites the recent rollback buffer.
> !image-2022-07-06-14-08-38-966.png!
> ⬆️ The image above shows the rollback buffer before I used vim, when the rollback buffer should hold the data from ll.
> !image-2022-07-06-14-11-02-204.png!
> ⬆️  However, after the vim command is used and the exit, the echo generated by ll command in the rollback buffer has been overwritten by the vim command.
> I know that the last page of data should be preserved after exiting using vim, but the data in the previous rollback buffer should not be lost, and I feel that this part of the processing like secureCRT is what we want.
> !image-2022-07-06-14-18-23-551.png!
> ⬆️ Just like this, after I use the vim command and exit, the previous ll command output will still exist, and the vim command will retain the state of the last screen before exiting.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)