Skip to content

feat: Add new keyboard-bindable action: clear and reset.#742

Open
xward wants to merge 1 commit intopop-os:masterfrom
xward:feat-clear-and-reset
Open

feat: Add new keyboard-bindable action: clear and reset.#742
xward wants to merge 1 commit intopop-os:masterfrom
xward:feat-clear-and-reset

Conversation

@xward
Copy link
Copy Markdown

@xward xward commented Feb 20, 2026

Hi !

Added QOL feature I miss from previous terminal in pop-os, a simple reset on terminal to flush everything. It looks like some other miss it too ! So here is my contribution.

@xward xward marked this pull request as ready for review February 20, 2026 19:39
Copy link
Copy Markdown
Member

@jackpot51 jackpot51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR template is mandatory and must be filled in. It is not correct to inject reset into the input.

Comment thread src/main.rs
// Reset the terminal by executing the reset command
// This fully reinitializes the terminal state (more thorough than clear)
// It clears the screen AND resets terminal settings, escape sequences, etc.
terminal.input_scroll(b"reset\n");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the right way to reset. It just injects reset no matter what is running.

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