kopia lustrzana https://github.com/maccasoft/z80-tools
Implemented terminal status and cursor position reports
rodzic
f6cd577b61
commit
13c92c5cbf
|
@ -587,6 +587,20 @@ public class Terminal {
|
||||||
font.setBackground(paletteData.colors[background]);
|
font.setBackground(paletteData.colors[background]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'n':
|
||||||
|
if (args[0] == 5) {
|
||||||
|
writeByte((byte) 0x1B);
|
||||||
|
writeByte((byte) '[');
|
||||||
|
writeByte((byte) '0');
|
||||||
|
writeByte((byte) 'n');
|
||||||
|
}
|
||||||
|
else if (args[0] == 6) {
|
||||||
|
byte[] b = String.format("%c[%d;%dR", 0x1B, cy, cx).getBytes();
|
||||||
|
for (int i = 0; i < b.length; i++) {
|
||||||
|
writeByte(b[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
savedCx = cx;
|
savedCx = cx;
|
||||||
savedCy = cy;
|
savedCy = cy;
|
||||||
|
|
Ładowanie…
Reference in New Issue