mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Terminal+LibVT: Add "clear including history" action (Ctrl+Shift+K) :^)
Sometimes you just want to get rid of all your scrollback history in the terminal, and now there's a way to do that.
This commit is contained in:
parent
e8a59ef842
commit
0c4b0c0312
5 changed files with 27 additions and 0 deletions
|
@ -79,9 +79,11 @@ public:
|
|||
|
||||
GUI::Action& copy_action() { return *m_copy_action; }
|
||||
GUI::Action& paste_action() { return *m_paste_action; }
|
||||
GUI::Action& clear_including_history_action() { return *m_clear_including_history_action; }
|
||||
|
||||
void copy();
|
||||
void paste();
|
||||
void clear_including_history();
|
||||
|
||||
virtual bool accepts_focus() const override { return true; }
|
||||
|
||||
|
@ -178,6 +180,7 @@ private:
|
|||
|
||||
RefPtr<GUI::Action> m_copy_action;
|
||||
RefPtr<GUI::Action> m_paste_action;
|
||||
RefPtr<GUI::Action> m_clear_including_history_action;
|
||||
|
||||
RefPtr<GUI::Menu> m_context_menu;
|
||||
RefPtr<GUI::Menu> m_context_menu_for_hyperlink;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue