Fixed issues when running in IDE in windows for ANSI detection

This commit is contained in:
nathan 2016-05-31 01:40:08 +02:00
parent e412d8de12
commit 70998607e1

View File

@ -114,7 +114,9 @@ public final class WindowsAnsiOutputStream extends AnsiOutputStream {
}
out.flush();
ASSERT(GetConsoleScreenBufferInfo(console, originalInfo), "Could not get the screen info");
if (GetConsoleScreenBufferInfo(console, originalInfo) == 0) {
throw new IOException("Could not get the screen info");
}
}
private