randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.37k stars 83 forks source link

Clear console from Tab (View) differs from Panel #340

Open felipetesc opened 2 years ago

felipetesc commented 2 years ago

First of all, I really enjoy this plugin. Thanks! However, I'm opening this to ask if it's possible to implement the same type of behavior from the Tab View to the Panel. What's happening is this: when I type clear, or cls, inside the Tab View the contents from the terminal are really erased, in the other hand, when I do the same inside the Panel the cursor only moves to a new line, if I scroll up with the mouse the contents are still there. I'm guessing it copies the contents, strings, previously added and paste to the panel and the same doesn't happen with the tab view. Perhaps there is a command, or some flags to mimic the tab view which I don't know. Any way, thanks (again) !

randy3k commented 2 years ago

when I type clear, or cls, inside the Tab View the contents from the terminal are really erased

Really? The content shouldn't be erased in both tab and panel.

Perhaps there is a command

Yes. On mac/linux, there is reset command.

felipetesc commented 2 years ago

The contents are not being erased at the same time inside the Tab View and the Panel. The thing is that when I type cls to clear everything from the Tab View all the contents are gone, like I wanted. However, in other moment, if I type cls inside the Panel the contents aren't gone, the cursor moves to a new line hiding the contents, but when I scroll up with the mouse wheel there are the old command inputs and outputs.
cls and clear are cmds from Powershell just like reset I'm using:

TY!