Skip to content

Commit b35415e

Browse files
committed
flip SET 2 & 12 perma flags, add DECSET 67 (DECBKM) as perma reset
1 parent 2fdb469 commit b35415e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/InputHandler.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,9 +2223,9 @@ export class InputHandler extends Disposable implements IInputHandler {
22232223
const p = params.params[0];
22242224

22252225
if (ansi) {
2226-
if (p === 2) return f(p, V.PERMANENTLY_SET);
2226+
if (p === 2) return f(p, V.PERMANENTLY_RESET);
22272227
if (p === 4) return f(p, b2v(cs.modes.insertMode));
2228-
if (p === 12) return f(p, V.PERMANENTLY_RESET);
2228+
if (p === 12) return f(p, V.PERMANENTLY_SET);
22292229
if (p === 20) return f(p, b2v(opts.convertEol));
22302230
return f(p, V.NOT_RECOGNIZED);
22312231
}
@@ -2240,6 +2240,7 @@ export class InputHandler extends Disposable implements IInputHandler {
22402240
if (p === 25) return f(p, b2v(!cs.isCursorHidden));
22412241
if (p === 45) return f(p, b2v(dm.reverseWraparound));
22422242
if (p === 66) return f(p, b2v(dm.applicationKeypad));
2243+
if (p === 67) return f(p, V.PERMANENTLY_RESET);
22432244
if (p === 1000) return f(p, b2v(mouseProtocol === 'VT200'));
22442245
if (p === 1002) return f(p, b2v(mouseProtocol === 'DRAG'));
22452246
if (p === 1003) return f(p, b2v(mouseProtocol === 'ANY'));

0 commit comments

Comments
 (0)