Hacker News new | past | comments | ask | show | jobs | submit login

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."




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: