Console for hacking Mozilla on Windows
This post is just a little tip for hacking Mozilla on Windows. It’s well known that the basic Windows console program is, uh, not good, compared to a Unix console. But it turns out there’s a really nice project on SourceForge named Console that provides multiple tabs, good fonts and scrollback, keyboard shortcuts, and a few other goodies.
Anyway, a few tips for using Console for Mozilla hacking:
- It’s just a zip file containing a program. There’s no install, you just run it.
- For mozilla-build, you want to create a new “Tab” in the settings. For example, I have one called “Mozilla ia32”, with Shell set to “C:\mozilla-build\start-msvc9.bat” and Startup dir set to “C:\mozilla-build”.
- With the latest version of mozilla-build, it doesn’t work right if you just do that. What will happen is that the tab will start up, then shut down as a standard Windows console opens. (Very annoying, because if it’s the only tab, it’ll even close down Console, so you can’t easily fix it.)
What you need to do is find your startup batch file (e.g., start-msvc8.bat) and change the last line from:
start /d "%USERPROFILE%" "" "%MOZILLABUILD%"\msys\bin\bash --login -i
"%MOZILLABUILD%"\msys\bin\bash --login -i