Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One thing I don't like is you can't completely clear the scrollback, only the visible portion. I often use 'tput reset' when doing new build/test runs and it is nice when the scrollback only contains this time's output.


Cmd + k clears scrollback how you want. If you want to script it, you can use osascript: http://apple.stackexchange.com/questions/31872/how-do-i-rese... Yeah, it's hacky.

It's a usability trade-off. Defaulting to allow scripts to erase all your scrollback would be pretty annoying in a lot of cases. Ideally there would be a checkbox for this behavior, but Apple doesn't like config options.

One thing I wish terminals had was a "scroll up to the last place I typed something." I think that would solve your problem as well.


They are my scripts and I don't need "protection" from myself. Users don't use the command line so it isn't particular relevant to them - this is relevant to developers.

I fully agree it shouldn't be an option, and that generally being highly configurable is a way of abdicating responsibility for making the right choices in the first place, and ensures that not everything is tested (there will be too many combinations of settings).

In this particular case I just think Apple chose the wrong behaviour.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: