News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Console Tab Character Length?

Started by Mark Jones, April 04, 2006, 09:13:29 PM

Previous topic - Next topic

Mark Jones

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. :)
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

Tedd

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)
No snowflake in an avalanche feels responsible.

Mark Jones

Bummer! Thanks for helping look though. :boohoo:
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

Tedd

You could always filter the console streams and replace tabs with the required number of spaces :bdg
No snowflake in an avalanche feels responsible.