Skip to content

Commit

Permalink
Implemented missing PST codes CLR_EOL and CLR_DN
Browse files Browse the repository at this point in the history
  • Loading branch information
maccasoft committed Jul 12, 2023
1 parent 1de8b25 commit 03b1ea3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/spin-tools/src/com/maccasoft/propeller/SerialTerminal.java
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,24 @@ public void run() {
}
break;

case 11: // CE: Clear To End of Line
for (int x = cx; x < screenWidth; x++) {
screen[cy][x].foreground = foreground;
screen[cy][x].background = background;
screen[cy][x].character = ' ';
}
break;

case 12: // CB: Clear Lines Below
for (int y = cy; y < screenHeight; y++) {
for (int x = 0; x < screenWidth; x++) {
screen[y][x].foreground = foreground;
screen[y][x].background = background;
screen[y][x].character = ' ';
}
}
break;

case 16: // CS: Clear Screen
for (int y = 0; y < screenHeight; y++) {
for (int x = 0; x < screenWidth; x++) {
Expand Down

0 comments on commit 03b1ea3

Please sign in to comment.