6 ms·
I use it to clear my scrollback buffer. It makes it easier to search any new output.
by benwaffle 3y ago
I use it to clear my scrollback buffer. It makes it easier to search any new output.
- hnlmorg 3y agoThere’s probably a hot key in your terminal emulator to do that. Fewer buttons to press, so even quicker. ;)
- IshKebab 3y agoSadly there isn't on Linux. There is on Mac - Ctrl-K. But for some reason nobody on Linux has realised how useful it is. It's actually even better than `reset` because it works at any time.
- mbork_pl 3y agoThere is in kitty: https://sw.kovidgoyal.net/kitty/conf/#shortcut-kitty.Reset-the-terminal https://sw.kovidgoyal.net/kitty/conf/#shortcut-kitty.Reset-t...
- hnlmorg 3y agoI think you're conflating SHELL with TERM because the OS has nothing to do with what hot keys your terminal emulator supports (the OS wouldn't dictate hot keys available for shells either, but popular Linux distros don't tend to default to Zsh like macOS does). A terminal emulator is the software application you use to bring the command prompt up. So a terminal emulator is operating system agnostic. Granted there are some macOS only terms out there like iTerm2 and Apples own Terminal. Just as there are terminals that haven't (as far as I'm aware) been ported to macOS, like xterm. But there's plenty of cross platform terminal emulators too, in fact most are cross platform.
- IshKebab 3y agoI'm not conflating anything. On Mac you can press Ctrl-K in any terminal emulator and it will clear the terminal and scrollback. On Linux no terminal emulators support this (except Kitty it turns out - as mentioned in the other comment). Sadly Kitty is very bare-bones. Not really for me. And I can't choose to use Kitty in VSCode.
- mbork_pl 3y ago> Sadly Kitty is very bare-bones. Care to elaborate? I had an impression that it's a pretty complete piece of software. I've been driving it daily for more than 1½ years, and I'm pretty happy with it.
- IshKebab 3y agoWell the first two things I tried that are present in pretty much all software - scroll bar and Ctrl-F to find, did not exist. There's no menu bar at all in fact.
- mbork_pl 3y ago> scroll bar I didn't even realize, I don't see a need for it anyway. > Ctrl-F to find, did not exist That's because Kitty has something much better: > Sometimes you need to explore the scrollback buffer in more detail, maybe search for some text or refer to it side-by-side while typing in a follow-up command. kitty allows you to do this by pressing the ctrl+shift+h shortcut, which will open the scrollback buffer in your favorite pager program (which is less by default). > There's no menu bar at all in fact. Which is a big plus. Emacs has a menu bar (and a toolbar), and I obviously turn them off, because they take up screen real estate.
- IshKebab 3y ago> ctrl-shift-h Ah yes, the logical shortcut for "find" (enormous face palm). Why do so many open source devs find sane UX so hard? It's a bit weird. (And yes I know it isn't exactly the same as "find" - it that is your instinctive response then you're misunderstanding how UX works.)
- aumerle 3y agoThat shortcut opens HISTORY, hence it is ctrl+shift+H. And if the terminal emulator used up ctrl+f to implement find, it would mean that no terminal program could use ctrl+f to implement find. Maybe next time before you try to imply other people dont know UX, pause, and consider if you know what you are talking about. Incidentally, using the term UX itself, generally is a good signal that the person that is using it doesnt have a clue what they are talking about.
- Zambyte 3y agoIs this an instance of that meme where people insult Linux to get better technical advice?