![]() |
Search |
| Home |
Linux User's Guide to Mac: TerminalBy Ed Hurst | Aug 5, 2008 at 16:37:45Few things in Unix match the importance of the terminal emulator. Having a nice GUI is fine, but nothing beats the command line, which some have said is the "front line" of computing. As an official member of the Brotherhood of the Commandline, I have always kept at least one terminal window open at all times, and often three or more. In Mac Land, that's Terminal. Yes, I could run the X server and use Xterm, but that would be a step backward from the one thing which drove me away from Unix in the first place. I came to Mac because I didn't have to use the X server to get a GUI, since Mac has the best one out there. Whatever I needed to do on the command line requires making Terminal do it right. By default, Terminal has some rather odd behavior for someone coming from
Unix, and more if your Unix is Linux. Most of it can be changed. One
thing you will not get is the mouse-paste. That's unique to the X
server. Sure, you can get a mouse driver for Logitech or Intellimouse
which will let you alter the wheel button behavior, but it breaks
other, more versatile and useful behavior, so you might as well get
used to For this demonstration, I'm using Joe as the application which will most readily lend itself to explaining what we need to do. Joe's Own Editor offers a quick and easy method to editing the configuration file to add non-default keystrokes. A couple of years ago I wrote a HOWTO on customizing Joe's keystrokes based on work by Anne Baretta and a few tips garnered here and there. In our last installment, we covered installing Joe and Aspell, so I'm assuming you either have them already, or can grasp what follows without them. First, grab a copy of your system
If you have the latest version of Joe, you'll probably want to
modify the For serious Mac users, this is probably anathema. For Unix users, having all or most of the F-keys available for the applications is pretty important. In Mac's System Preferences, go to Keyboard & Mouse, and open Keyboard Shortcuts. For me, the simplest answer was to en masse turn off "Keyboard Navigation" shortcuts because I use the mouse for those things, if at all. Then I added "Dock, Expose and Dashboard" because I can't imagine why I would want them. Your mileage may vary, but if you want the F-keys for Terminal, consider it. In my HOWTO on Joe's
keystrokes, I point out the method of determining what keycodes
are output by your terminal emulator of choice, by hitting
Now, scanning down through the list of default keystrokes in this
dialog, we see why the "gray keys" won't work without holding down the
In order to tell Terminal to output that second command as I
wished, I had to remove the default and tell it to send the string in
the last column of the second row above. Furthermore, I have to warn
you the dialog will attempt to interpret any deleting keystrokes, so
neither Below are all the arrow keys and gray keys except the
Once you have told Terminal what keystrokes you want added and the
strings to send, you are ready to edit your
I use the same for HTML files. The explantion for each one can be
found in the There is one more peculiarity I've found in Terminal. For some
strange reason, F1-F3 tend to output something different than what Joe
expects, and probably most other command line programs from Unix. In my
After you've added your custom keystrokes and commands to
Which brings up the last point of renaming them both by adding a period to the front of the file so they are read as configuration files:
After modifying the Terminal profile keystrokes, I tested a few other applications and they seemed to work okay. Enjoy. Ed Hurst is Associate Editor of Open for Business. Article Path: Home: Computers and Technology: Linux User's Guide to Mac: Terminal Please enter your comment entry below. Press 'Preview' to see how it will look. |
UPDATED: BSD on the DesktopBy Ed HurstIn an extensive multi-part report, OFB's Ed Hurst presents how the power of the FreeBSD operating system can be harnessed for the desktop. Using understandable instructions and relevant tips, Ed provides the tools for mere mortals to enjoy BSD's fabled stability. |
Help Us Serve YouOpen for Business strives to serve up the most interesting, relevant content possible; however, we can only do so with your help. Please take a few moments to fill out our online survey so that we can learn more about the interests of our readers, readers such as you. |
Write for OFBOpen for Business accepts commentaries and other works on technology, current events, politics, philosophy, business and other relevant matters for publication. Commentaries should be 600-800 words in length, other works vary but should generally be kept to less than 1500 words. If you think you would like to contribute, contact OFB's editor, Timothy R. Butler. |
| Home |
| © 2001-2008 Universal Networks, All Rights Reserved. Some content rights may be held by Universal Networks' providers and used under license. |