kopia lustrzana https://github.com/maccasoft/z80-tools
Fixed VT100 cursor keys sequence
rodzic
5dbc81fb37
commit
c29fbe0401
|
@ -259,26 +259,32 @@ public class Terminal {
|
||||||
switch (e.keyCode) {
|
switch (e.keyCode) {
|
||||||
case SWT.ARROW_UP:
|
case SWT.ARROW_UP:
|
||||||
writeByte((byte) 0x1B);
|
writeByte((byte) 0x1B);
|
||||||
|
writeByte((byte) '[');
|
||||||
writeByte((byte) 'A');
|
writeByte((byte) 'A');
|
||||||
break;
|
break;
|
||||||
case SWT.ARROW_DOWN:
|
case SWT.ARROW_DOWN:
|
||||||
writeByte((byte) 0x1B);
|
writeByte((byte) 0x1B);
|
||||||
|
writeByte((byte) '[');
|
||||||
writeByte((byte) 'B');
|
writeByte((byte) 'B');
|
||||||
break;
|
break;
|
||||||
case SWT.ARROW_LEFT:
|
case SWT.ARROW_LEFT:
|
||||||
writeByte((byte) 0x1B);
|
writeByte((byte) 0x1B);
|
||||||
|
writeByte((byte) '[');
|
||||||
writeByte((byte) 'D');
|
writeByte((byte) 'D');
|
||||||
break;
|
break;
|
||||||
case SWT.ARROW_RIGHT:
|
case SWT.ARROW_RIGHT:
|
||||||
writeByte((byte) 0x1B);
|
writeByte((byte) 0x1B);
|
||||||
|
writeByte((byte) '[');
|
||||||
writeByte((byte) 'C');
|
writeByte((byte) 'C');
|
||||||
break;
|
break;
|
||||||
case SWT.HOME:
|
case SWT.HOME:
|
||||||
writeByte((byte) 0x1B);
|
writeByte((byte) 0x1B);
|
||||||
|
writeByte((byte) '[');
|
||||||
writeByte((byte) 'H');
|
writeByte((byte) 'H');
|
||||||
break;
|
break;
|
||||||
case SWT.END:
|
case SWT.END:
|
||||||
writeByte((byte) 0x1B);
|
writeByte((byte) 0x1B);
|
||||||
|
writeByte((byte) '[');
|
||||||
writeByte((byte) 'K');
|
writeByte((byte) 'K');
|
||||||
break;
|
break;
|
||||||
case SWT.F1:
|
case SWT.F1:
|
||||||
|
|
Ładowanie…
Reference in New Issue