summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-08 17:51:18 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-08 17:51:18 +0000
commit47f4adee4065088638b85c1aeba0747fa2fe3fb2 (patch)
treefb3000c2823d2fe1cf94bfff0e8b16db3de0dfaf /crawl-ref/source/libw32c.cc
parent9f35f123b311ebb5c9e8465e3d1080577958c5b4 (diff)
downloadcrawl-ref-47f4adee4065088638b85c1aeba0747fa2fe3fb2.tar.gz
crawl-ref-47f4adee4065088638b85c1aeba0747fa2fe3fb2.zip
Handle tabs properly in Windows.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2819 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libw32c.cc')
-rw-r--r--crawl-ref/source/libw32c.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/libw32c.cc b/crawl-ref/source/libw32c.cc
index 81279dd7b3..8749f70469 100644
--- a/crawl-ref/source/libw32c.cc
+++ b/crawl-ref/source/libw32c.cc
@@ -130,6 +130,13 @@ static DWORD crawlColorData[16] =
void writeChar(char c)
{
+ if ( c == '\t' )
+ {
+ for ( int i = 0; i < 8; ++i )
+ writeChar(' ');
+ return;
+ }
+
bool noop = true;
PCHAR_INFO pci;