4 ms·
I'm amazed when I see people type clear when ctrl+l has been around for decades.
by petepete 3y ago
I'm amazed when I see people type clear when ctrl+l has been around for decades.
- bkallus 3y agoIn Alacritty, ctrl-l clears the screen but does not clear the scrollback buffer. Clear also clears the scrollback buffer. This is useful for running programs with lots of output containing escape codes that may get mangled by less; just run the program and press shift-home to scroll to the top of the buffer.
- petepete 3y agoI have ctrl+k bound to clear the scrollback buffer in tmux, it's rare I use it but handy.
- JohnFen 3y agoI've been typing "clear" for so long that it would take longer for me to think to override my muscle memory and use ctrl-l instead, and the time saved isn't enough to bother retraining myself on this. Also, ctrl-l isn't universal, but "clear" very nearly is.
- petepete 3y agoOut of interest, where doesn't ctrl-l work? I only use Linux these days and readline's ubiquity means it's pretty much everywhere I go.
- JohnFen 3y agoI was thinking of operating systems I use aside from the Unices or Windows, such as VMS, z/OS, etc. But now that I consider it, I don't know for a fact that Ctrl-l doesn't work with standard terminal programs in other OSes. I just assumed it generally won't. So, grain of salt and all that.