Skip to content

Commit

Permalink
Fixed PST to ANSI codes coversion
Browse files Browse the repository at this point in the history
  • Loading branch information
maccasoft committed Dec 14, 2024
1 parent 51043dd commit 2f68adf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/spin-tools/src/com/maccasoft/propeller/SpinCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -526,24 +526,24 @@ 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;
}
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;
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2f68adf

Please sign in to comment.