diff --git a/telidon.ts b/telidon.ts index d9fbe89..7b7aa6a 100644 --- a/telidon.ts +++ b/telidon.ts @@ -332,23 +332,22 @@ export class Naplps extends EventEmitter { this.pdiModeGr(); } + /** + * Switches terminal to graphics mode + */ init() { - 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, 0x31); 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 */