Posts Tagged ‘apple’

OS X Default keys

25 February 2008 – 12:53 CDT

Some default key bindings in OS X are, honestly, annoying. Especially the home/end keys. Of the “big three” desktop OSes, Mac seems to be the odd man out. Most windows/linux applications treat home/end the same way. In the OS X terminal application, the home key sends you to the top of the scroll buffer. The end key sends you to the end of the window’s scroll buffer. Not the expected behavior. Home means “home” – the beginning of the line. End means “end” – the end of the line. Pgup and pgdn are supposed to serve to move in large chunks around the buffer. I can’t count the number of times I’ve hit the end key expecting to get to the end of the line (like while I’m typing this post) and instead get the end of the buffer. Highly annoying to have my work interrupted by this constantly. Instead of me trying to learn how to use yet another interface/computer, I’m making the computer learn this time.

Here is how to remap the home/end keys in the terminal application

Terminal>Window Settings>Keyboard





the 033 part can be obtained by ^[ (aka ctrl+[ )

After doing that, you need to modify (or create) your .inputrc file to contain the following

# Be 8 bit clean.
set input-meta on
set output-meta on
set convert-meta off

# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line

# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert

Restart the terminal and you’ll be good. Firefox, however still acts whacked out. That one is more complicated.

OS X 10.5 (Leopard) First Impressions

10 January 2008 – 16:04 CDT

Upgraded my Macbook from OS X 10.4 to .5 (Leopard) today. First impressions are mixed. The install/upgrade process took a while, but was hands-off for the most part. After a couple of reboots for software updates – including an ominous /!\ dialog about boot caches needing to be updated, and a hang during boot, it seems to have installed fine.

However, the one thing that probably drives me more nuts than anything in a computer, is when it tells me I don’t have sufficient access to perform an operation. Windows does this often enough when I try to kill a hung process. As an administrator, I should be able to kill any process or delete any file I want. The consequences are mine to bear. In Leopard’s case, I was simply trying to rename a folder. I have a folder aptly called ‘downloads’ where I store applications, tarballs, etc that I’ve downloaded from the ‘net. I point Firefox at it so that files go there automagically. Leopard figured out this was a special folder and gave it a pretty icon. I decided to rename the folder “Downloads” (capital D) to be more consistent with the other folders (Documents, Movies, etc). Except, I’m not allowed. The Finder says “You do not have sufficient privileges to perform this operation” or so such nonsense. Thankfully someone has a solution

skyhawk:~ $ mv downloads/ Downloads
mv: rename downloads/ to Downloads: Permission denied
skyhawk:~ $ ls -ld downloads/
drwxr-xr-x+ 153 sj sj 5202 Jan 10 13:13 downloads/
skyhawk:~ $ chmod -RN downloads
skyhawk:~ $ mv downloads/ Downloads

I don’t know what the trailing + means, and I have no idea what the N is either. But it worked.