Save cursor and restore more modes

Fixes #1526
This commit is contained in:
Daniel Imms
2025-12-30 04:49:54 -08:00
parent a5af434e3e
commit 857c4529cd
8 changed files with 59 additions and 5 deletions
+11 -2
View File
@@ -80,9 +80,18 @@ export class MockCharsetService implements ICharsetService {
public serviceBrand: any;
public charset: ICharset | undefined;
public glevel: number = 0;
public charsets: (ICharset | undefined)[] = [];
public reset(): void { }
public setgLevel(g: number): void { }
public setgCharset(g: number, charset: ICharset): void { }
public setgLevel(g: number): void {
this.glevel = g;
this.charset = this.charsets[g];
}
public setgCharset(g: number, charset: ICharset | undefined): void {
this.charsets[g] = charset;
if (this.glevel === g) {
this.charset = charset;
}
}
}
export class MockCoreService implements ICoreService {