sst / sst

Build full-stack apps on your own infrastructure.
https://sst.dev
MIT License
24.04k stars 1.85k forks source link

Add hotkey to clear terminal output in a multiplexer pane #5891

Open erikmunson opened 3 weeks ago

erikmunson commented 3 weeks ago

we have a bunch of logging in one of our dev server processes. my team has muscle memory for clearing the terminal regularly, especially when they want to see the log lines for a specific action they are about to take in the local ui/api.

has been driving them crazy since i moved us to the sst dev multiplexer that it is impossible to clear the terminal output of a pane in the multiplexer. it is also painful to scroll a long way up to try to find some logging output and then have to scroll all the way back down to the end — clearing would help with this too because you could scroll up to find something and then clear when done.

related discord thread: https://discord.com/channels/983865673656705025/1329852052272320615

jayair commented 3 weeks ago

Yeah this is a good feature.

Is there a specific pane you are referring to for the logs? Or is it on all of them?

erikmunson commented 3 weeks ago

👍 for me personally the panes for any process started by an sst.x.DevCommand resource would be sufficient since that's how i run things right now, though i assume folks who are using the dev option/config on other resources would want the same feature. i don't have a need for it in the main SST process or the Functions tab.

handlebauer commented 2 weeks ago

could use this feature as well, +1