martyr-deepin / deepin-terminal-gtk

DDE terminal emulator application
GNU General Public License v3.0
263 stars 57 forks source link

Keyboard shortcut to clear terminal #79

Closed muhammadkholidb closed 5 years ago

muhammadkholidb commented 5 years ago

Is there any keyboard shortcut to clear the terminal content like Ctrl + K in Mac terminal or Ctrl + Shift + K in Linux Mint terminal?

rafaeldev commented 5 years ago

Did you try using Ctrl + L?

muhammadkholidb commented 5 years ago

Tried that. It doesn't clear all the terminal buffer, but only the text currently seen. If you scroll up the terminal it you will see the previous text on the terminal.

hualet commented 5 years ago

you can make an alias https://stackoverflow.com/questions/5367068/clear-a-terminal-screen-for-real, and bind a new hotkey for it http://www.humbug.in/2010/custom-key-bindings-keyboard-shortcuts-in-bash/.

abrighton commented 5 years ago

I don't see any keyboard shortcut to clear a terminal while a command is running. On Mac and Gnome it is something like Ctrl-K/Cmd-K. Making an alias is not useful if a command is currently running.