Muffinresearch Labs by Stuart Colville

Fixing the display of history in terminal.app | Comments (0)

Posted in Apple, Code on 1st June 2008, 6:29 pm by Stuart

Once I started using leopard’s new shiny terminal I noticed some problems with the terminal whenever I was using the cursor keys to access items in the memory.

What happens is the lines of history appear to start halfway through a previous line of history like so:

terminal app showing "cd '/Volumes/Homeless README"

For a while I’ve been blaming the terminal when in fact it was totally my fault. The problem occurs when you have incorrectly escaped your prompt.

The details of the correct color escape sequence can be found at tdlp.org

Once I’d corrected my escaping the problem was fixed and now history works as expected. What’s interesting is that I’ve been using the same prompt for ages on Tiger and had never had that problem although for the best part of a year I have been using iTerm, and I’m not sure if there’s something about tiger’s terminal or iTerm that makes it more forgiving of dodgy escape sequences.

Post Tools

Comments: Add yours







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Using Loggerhead with mod_wsgi|(0)

Here’s a post I wrote over on the Project Fondue Blog about our use of Loggerhead with mod_wsgi under Apache. Loggerhead is the rather nice branch viewer for bazaar branches as used on Launchpad.net.

If you’re not already subscribed to the Project Fondue blog feed then I can recommend it, as there should be some interesting posts coming out of there in the coming months (yes I’m unashamedly biased!).

Ubuntu: Turn off changing workspace with mouse wheel|(1)

I found the changing with the workspace with the mouse wheel really annoying. To disable it go to System => Preferences => CompizConfig (available if the compizconfig-settings-manager package is installed) and uncheck “Viewport Switcher” which is under the “Desktop” heading.

Photos on Flickr

© Copyright 2004-10 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.664s.