Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminal emulator: clear scrollback buffer when resetting to initial state #1390

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

ghost
Copy link

@ghost ghost commented Dec 21, 2019

Fixes utility 'reset' not being able to clear scrollback buffer.

…state

Fixes utility 'reset' not being able to clear scrollback buffer.
@fornwall fornwall merged commit 490853e into master Dec 23, 2019
@snogglethorpe
Copy link

snogglethorpe commented Dec 24, 2019 via email

@ghost
Copy link
Author

ghost commented Dec 24, 2019

I'm thinking it would be really unfortunate if typing Ctl-L in bash

CTRL-L never requests terminal to be reset. It just clears the current screen (equivalent to command clear). Note that this shortcut is shell-specific.

RIS sequence (sent by reset utility) does a lot more things like resetting terminal parameters and clearing memory including scrollback buffer and in some implementations even clipboard.

@ghost ghost deleted the terminal-emulator-reset-fix branch December 24, 2019 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants