Appearance is everything and I hate it when I have to deal with applications that are designed to sub par standards. A great example of this is the Windows Command Prompt.

I spend quite a bit of time on both Mac and Windows platforms. Unfortunately, of late, the majority has been on Windows. And when I’m stuck on windows, I’m stuck using the command prompt. The command line on Windows is crippled when compared with Linux or OS X. While not as bad as the lack of a fully integrated bash shell, the fact that I’m looking at fonts created in 1991 or earlier really doesn’t make the experience any better.

Unfortunately, the properties window for the command prompt doesn’t give you any choices besides “Raster” or Lucida. There is also no built-in method for adding fonts to this list.

However, there is a way to do this via a registry hack. Open up regedit and modify this key:

HKLMSOFTWAREMicrosoftWindows NTCurrentVersionConsoleTrueTypeFont

You should see one string value by default:

"0" REG_SZ "Lucida Console"

You can add more entries by adding additional string values. The trick is the numbering used in the fonts. You have to append ‘0’ for each new font you add. This, is in opposition to the traditionally held theory that we increment as we count. 1, 2 ,3… =) WTF?

So for the first font you add:

"00" REG_SZ "Consolas"

And the next:

"000" REG_SZ "Courier New"

Once you have added the fonts you use, close regedit and reboot. Though, if you fire up command prompt before the reboot, you’ll be able to change the fonts. They just won’t be reflected in the display of the prompt. Very weird.

Notes:

– REG_SZ means a String Value.
– Consolas is a new badass font found in Windows Vista. I ganked my copy from a friend who is running Vista and I now use it everwhere. It even replaced the Monaco font I was using that was ganked from OS X. Once in awhile, MS comes up with something grand. This time it’s a lowly true type font. You can download it here: Microsoft.com

About the Author:

Learned something? Great! Need help on your development project? I'm available for hire:

  • Ruby on Rails
  • iOS Development
  • System Architecture & Performance

Get in touch:

Discussion

  1. Anonymous says:

    Hey, I love your blog about changing windows command prompt. Did you find that the new fonts always use Italics? my newly added courier and consolas both are italicized. Weird huh?

  2. mike says:

    No, I didn’t have a problem with that. In the font list does it list Consolas Italic? I’d have to think, probably not. I wonder if there is another setting some place that says “all cmd output should be italicized.” Kind of like how you can say all title bars should be bold in the Appearance tab under Display Properties.

Leave a Comment