Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Clear text while leaving current line intact, keeping selection and clearing scrollback buffer. Appears in shortcut list in
Terminal -> Clear output
and right-click menu asClear
.Note: while this is a hacky method, it reproduces same "Clear" that vscode does, especially with TUI's. I unfortunately had trouble extracting current line with vte.getText and vte.getTextRange, which lead me to this solution that does not require patching VTE.
Before clean:
![image](https://private-user-images.githubusercontent.com/33424336/352878891-09d9044a-af69-4707-9c03-59fcfbf247f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMjYyODcsIm5iZiI6MTcyNjEyNTk4NywicGF0aCI6Ii8zMzQyNDMzNi8zNTI4Nzg4OTEtMDlkOTA0NGEtYWY2OS00NzA3LTljMDMtNTlmY2ZiZjI0N2YwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDA3MjYyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE3Y2Q2ZThkOGUzMWViN2ZhNmYzM2FlNGYyODM0MWJhNDI2NDM1NTk4N2JiM2U3YTNiNTRjZGQxZjE4MDgzNzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jAl1Lkj9KnyASwNQtq5FvMytpLvIFi9HfBLZKEFPeEQ)
![image](https://private-user-images.githubusercontent.com/33424336/352878991-6893d7a8-2eaa-4619-90aa-c5c895da452f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMjYyODcsIm5iZiI6MTcyNjEyNTk4NywicGF0aCI6Ii8zMzQyNDMzNi8zNTI4Nzg5OTEtNjg5M2Q3YTgtMmVhYS00NjE5LTkwYWEtYzVjODk1ZGE0NTJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDA3MjYyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhODc2MmY0MWRlMWQ4MmQzNjZkZDk5NDA4YjJkMGY5YWVhODdhOGNlNjk1ZTc1NTBjNGFhNjE5YmY3ZmVlY2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Kf9u3oaFit8lze4gHm-UKG-EHJoHBXRPm0MFNXBAfus)
After clean (can't scroll up):
#2217 #1615 🎉