But I’ll refrain from answering that question for now. And I’ll even refrain from correcting you in that PINEwasn’t available until 1989.

And, so, in fighting the ongoing war against email, I tend to spend a lot of my day interacting with Mac OS X’s Terminal.app. I SSH into one of our Fedora Core Linux servers and run PINE there.

The default keybindings used by Terminal.app leave a bit to be desired, however

— particularly when editing in a visual editor such as PINE’s PICO. Home, End, Page-Up, and Page-Down — as is typical on Mac — all modify the viewport, but not the location of the cursor. And, coming from using X-Window on Linux for the last twelve years, I’m a bit frustrated when pressing Home whisks me to the beginning of the Terminal.app buffer, rather than the beginning of the current line I’m editing.

It’s important to note here that you cannot simply type “\033” to get the escape character. Typing ‘' gives you 2 backslashes in the box: “\”. To get the \033 part you need to press escape (esc) or type \033 and then use fn-delete to remove one of the extra slashes.

I’m a Mac user, and although I haven’t used Pine in a few years, I loved it when I did, especially its “select” functions and automatic monthly archiving. Found your page while looking for a way to get page up/page down to work after a terminal window has exited, and although this isn’t that, I can think of a few places this tip could come in handy. Thanks!

The page-up/page-down thing is driving me crazy, too. I’m using OS X 10.2.8, and there is no “Keyboard” option under Terminal, Window Settings (I am guessing because this was added in a newer version of Terminal). Do you know of another way to change the keybindings?

On 10.4, Terminal.app stores its preferences in ~/Library/Preferences/com.apple.Terminal.plist. Inside, there’s a “KeyBindings” section. It looks like page up and page down are keys “F72C” and “F72D”, respectively. If these keys exist in 10.2’s plist, you might be able to set their values to those I described in the original post.

Also you should consider mapping other commands to move the cursor. I found this (http://henriquebastos.net/post/the-complete-keyboard-mapping-for-leopards-terminalapp) terminal configuration quite convenient. []’s!

on 10.5.6 I needed to use the (esc) key in order to get the escape command for the home and end keys, and then use the modifier as per JÃ¼rgen’s comments above. So home became: 33[H
And end became: 33[F
Copy and paste does not always work, so the (escape) key function is useful.

Here’s the thing that’s making me crazy:
cmd-w in Terminal kills the tab.
ctrl-w in pine searces for stuff in your email.
I keep accidentally killing the Terminal tab in which I’m running pine.
How do I change this key binding in Terminal, I wonder. Sigh…