1
0

Fix PRINT

This commit is contained in:
otya128
2016-12-10 23:18:35 +09:00
parent 8faa3242b2
commit 69234d9f8d

View File

@@ -359,6 +359,11 @@ class Console
//write(text);
foreach(wchar c; text)
{
if(CSRX == consoleWidthC)
{
CSRX = 0;
CSRY++;
}
if(CSRY >= consoleHeightC)
{
CSRY = consoleHeightC - 1;
@@ -388,7 +393,7 @@ class Console
tab = tab ? 2 : 0;
}
CSRX++;
if(CSRX >= consoleWidthC || c == '\n')
if(CSRX > consoleWidthC || c == '\n')
{
CSRX = 0;
CSRY++;