Sunday, March 16, 2008

People do customize their command window, ya know...

ConsoleColors

How easy it is to assume that the user would've standard command window configuration? As seen in the screen-shot above, I ran a tool from Windows DDK (the tool ironically is called LooksGood) and it changed my cmd window color scheme to what it assumed looks good Wink

This used to be a common problem when implementing TSRs in the days of  yore. And, one normally took care to store the original forecolor and backcolor of the user's DOS screen.

I wonder how many of the new programmers who are now using ConsoleColor and Console.ForeColor might have even heard of TSRs let aside building one.

Anyway, this slipped as part of a tool built by Microsoft is the other irony :) But to do justice to the developer, it is just a tool to assist in development of a printer driver. And, the intended audience is also quite limited. After all, how many people in this world would run a tool to compare the output of a Raster Image Processor (RIP) to a known good source? Unless of course you are implementing an XPS printer! Wink ( http://blogs.msdn.com/xps/archive/2006/06/02/614795.aspx)

 

If you are looking at customizing your cmd window, try the following two links...

Stupid Command Prompt Tricks

Using Consolas as the Windows Console Font

 

 

 

del.icio.us Tags:

Technorati Tags:

No comments:

Post a Comment