Showing posts with label osx. Show all posts
Showing posts with label osx. Show all posts

Sunday, April 6, 2014

Fix for iTerm2 Numeric Keypad Not Working


I'd had to fix this a couple of times now on various computers and figured I'd just post the answer in case I ever have to do it again.
By default the numeric keypad sends function key codes. You can turn that off by selecting the "xterm with numeric keypad" preset in Preferences > Profiles > Keys.
https://code.google.com/p/iterm2/issues/detail?id=2000
For those of you who don't use iTerm2, I highly recommend it. One of my favorite features is enabling semi-opaque transparency and blur so I can still code and not be distracted the background artifacts. The settings can be found in Preferences > Profiles > Window


And these settings end up looking like this

Saturday, April 5, 2014

Speed Up Key Repeat Input on Your Mac

So I'm happy to be blogging again and I though I'd start by sharing a hack I ran across a couple of months ago.  It involves adjusting the OSX Key Repeat setting to a lower value that what the GUI allows.  This setting is great for developers like me who sometimes navigate through code using arrow keys or like to quickly delete something by holding down the delete key.

System Preferences > Keyboard



Now the GUI presently allows you to set Key Repeat to a minimum value of 2, which for many folks, doesn't seem to be fast enough. We can change the value to 1, but before we do, take note of your current setting with the following command.


jbisbee@beni$ defaults read NSGlobalDomain KeyRepeat
30

Now to set the value to 1, we can use the following command. Unfortunately, you will need to reboot to have the change take affect.

jbisbee@beni$ defaults write NSGlobalDomain KeyRepeat -int 1

In the event you don't like the result, simply run the command again with your initial value.

jbisbee@beni$ defaults write NSGlobalDomain KeyRepeat -int 30

If someone knows the mac command to reinitialize, please share. :)