Fixed issues when running in IDE in windows for ANSI detection
This commit is contained in:
parent
e412d8de12
commit
70998607e1
@ -114,7 +114,9 @@ public final class WindowsAnsiOutputStream extends AnsiOutputStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
out.flush();
|
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
|
private
|
||||||
|
Loading…
Reference in New Issue
Block a user