show output of an os executed commend with auto scrolling #790
-
Hi. All. My first time here. Thank you so much for making this library! I am trying to build a docker like tool where multiple commands need to be executed in parallel. As such i cannot show all outputs at once. I want the user to see the stdout of a command by choosing from a menu. Is there an example that shows how to autoscroll a view based on input coming from a os executed command ? .i.e i dont want the user to scroll to the end. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! This isn't an example per se, but the relevant things to check out are The basic logic is:
|
Beta Was this translation helpful? Give feedback.
Hi! This isn't an example per se, but the relevant things to check out are
ExecProcess
in Bubble Tea andGoToBottom
in Viewport.The basic logic is:
ExecProcess
to run shell commands and get their output.GoToBottom
after you get shell output.