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

I've got Home/Down working correctly in my Terminal.app, you've got to go into Preferences->Settings->Keyboard, then scroll down to find the "home" key, click "Edit", and set the action as "send string to shell", and enter "\001" as the string. Repeat for "end", using "\005" as the string.

Caveat - this is how my work laptop is setup, my personal one is set to "\033[H" and "\033[F" for home/end respectively, but it works as well and I don't remember how I set it up. I'm remembering having some issues with the prefs wanting to escape the backslashes so "\003[H" ended up as "\\003[H" or something like that...

For PageUp/PageDown I find that applying the shift key with them does the trick (at least in applications like vim/less). However you can probably apply a similar trick for them in the prefs.

The Control key (jumping word boundaries) works sometimes for me, sometimes not, haven't tracked that one down yet.

edit: by "correctly" for home/end I mean jumping to the beginning/end of a line.



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: