InnovationEngine icon indicating copy to clipboard operation
InnovationEngine copied to clipboard

Auto-scroll to end of result

Open mbifeld opened this issue 11 months ago • 4 comments

When a command has a long output, the user has to manually scroll to the end to see the "bash" for the next command. It should auto-scroll.

mbifeld avatar Mar 27 '24 18:03 mbifeld

@mbifeld Did we ever determine if this was due to the portals terminal implementation? I believe that our application does issue commands for the scroll to happen automatically after a command/result is shown on screen, but the scroll is issued as an ANSI escape code to the terminal emulator that it's running in. It's been a while since I've tried, but I think I've tested the scrolling inside the standard cloud shell experience and the scrolling worked just fine using ie execute <doc> --environment azure.

vmarcella avatar May 23 '24 19:05 vmarcella

Portal has been testing if the scroll issue is on them, and current indications seem like this is the case.

mbifeld avatar Jun 12 '24 18:06 mbifeld

This issue also seems to happen inside of iterm2, meaning that the issue might be with ie instead of the portal, but I have not tried to reproduce it myself to see the underlying cause.

vmarcella avatar Jun 19 '24 20:06 vmarcella

Commit aed8dc96b220e7a48eec1d15eabbc502f180e3f0 with the snippet of code:

       if viewportContentUpdated {
               model.components.commandViewport.GotoBottom()
       }

Fixed the issue for me.

zioproto avatar Jun 20 '24 05:06 zioproto