use alt init/uninit, remove redundant escape/unescape API
This commit is contained in:
parent
bb3ae84444
commit
f43d10cf7b
25
telidon.ts
25
telidon.ts
|
@ -332,23 +332,22 @@ export class Naplps extends EventEmitter {
|
||||||
this.pdiModeGr();
|
this.pdiModeGr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Switches terminal to graphics mode
|
||||||
|
*/
|
||||||
init() {
|
init() {
|
||||||
this.writeBytes(0x1b, 0x31);
|
//return this.writeBytes(0x1b, 0x31);
|
||||||
this.writeBytes(0x1b, 0x22, 0x46);
|
|
||||||
}
|
|
||||||
|
|
||||||
uninit() {
|
|
||||||
return this.writeBytes(0x1b, 0x32);
|
|
||||||
}
|
|
||||||
|
|
||||||
escape() {
|
|
||||||
return this.writeBytes(0x1b, 0x25, 0x40);
|
|
||||||
}
|
|
||||||
|
|
||||||
unescape() {
|
|
||||||
return this.writeBytes(0x1b, 0x25, 0x41);
|
return this.writeBytes(0x1b, 0x25, 0x41);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Switches terminal back to text mode
|
||||||
|
*/
|
||||||
|
uninit() {
|
||||||
|
//return this.writeBytes(0x1b, 0x32);
|
||||||
|
return this.writeBytes(0x1b, 0x25, 0x40);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shifts to text mode
|
* Shifts to text mode
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue