The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Mark Jones on April 04, 2006, 09:13:29 PM

Title: Console Tab Character Length?
Post by: Mark Jones on April 04, 2006, 09:13:29 PM
Hi, it seems that WinXP console text displays tabs using 8 spaces instead of four. In a GUI edit control this is changable with an EM_SETTABSTOPS message... but is there any way to change this behavior in a console box? Switching between the console window's font options does nothing to tabs, and SetConsoleMode only changes the way tabs are parsed, not displayed. (DrawText and TabbedTextOut require a hDC for tab manipulation.) Any ideas? Thanks. :)
Title: Re: Console Tab Character Length?
Post by: Tedd on April 05, 2006, 10:43:08 AM
I think it's fixed - for a number of reasons, namely compatibility.
(Programs that prints tabs can expect them to take 8 spaces, and use that to align columns, etc)
Title: Re: Console Tab Character Length?
Post by: Mark Jones on April 08, 2006, 08:48:41 PM
Bummer! Thanks for helping look though. :boohoo:
Title: Re: Console Tab Character Length?
Post by: Tedd on April 10, 2006, 10:06:30 AM
You could always filter the console streams and replace tabs with the required number of spaces :bdg