News for hackers. Stuff that matters.
Re:Clear Your Terminal in Style by jchook on Thursday March 05, 2020 @06:43PM (#22499664)
When I switched from macOS to Linux, not having ⌘-K really bugged me.

However I found out that most terminal emus on Linux also have this feature as Ctrl-L.

In gnome-terminal you have to press Ctrl-K to clear the screen, and then Ctrl-L to redraw the prompt.

The bash manual documents Ctrl-L as "Clear the screen leaving the current line at the top of the screen."

There are no comments on this comment yet.