diff --git a/modules/spin-tools/src/com/maccasoft/propeller/SpinCompiler.java b/modules/spin-tools/src/com/maccasoft/propeller/SpinCompiler.java index f22da499..bc10e832 100644 --- a/modules/spin-tools/src/com/maccasoft/propeller/SpinCompiler.java +++ b/modules/spin-tools/src/com/maccasoft/propeller/SpinCompiler.java @@ -526,16 +526,16 @@ void write(byte c) { return; } System.out.print("\033["); - System.out.print(String.valueOf(c)); + System.out.print(String.valueOf(c + 1)); System.out.print(";"); - System.out.print(String.valueOf(p0)); + System.out.print(String.valueOf(p0 + 1)); System.out.print("H"); cmd = 0; return; } else if (cmd == 14) { // PX: Position cursor in X System.out.print("\r\033["); - System.out.print(String.valueOf(c)); + System.out.print(String.valueOf(c + 1)); System.out.print("C"); cmd = 0; return; @@ -543,7 +543,7 @@ else if (cmd == 14) { // PX: Position cursor in X else if (cmd == 15) { // PY: Position cursor in Y System.out.print("\033[999A"); System.out.print("\033["); - System.out.print(String.valueOf(c)); + System.out.print(String.valueOf(c + 1)); System.out.print("B"); cmd = 0; return; @@ -584,7 +584,7 @@ else if (cmd == 15) { // PY: Position cursor in Y break; case 16: // CS: Clear Screen - System.out.print("\033[J"); + System.out.print("\033[H\033[2J"); break; default: