Skip to content

Commit 3592c64

Browse files
committed
Remove request term info handler
We're not supporting it anyway, no point having it.
1 parent ae61292 commit 3592c64

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/InputHandler.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,6 @@ const GLEVEL: {[key: string]: number} = {'(': 0, ')': 1, '*': 2, '+': 3, '-': 1,
2525
* DCS subparser implementations
2626
*/
2727

28-
/**
29-
* DCS + q Pt ST (xterm)
30-
* Request Terminfo String
31-
* not supported
32-
*/
33-
class RequestTerminfo implements IDcsHandler {
34-
private _data: string;
35-
constructor(private _terminal: any) { }
36-
hook(collect: string, params: number[], flag: number): void {
37-
this._data = '';
38-
}
39-
put(data: string, start: number, end: number): void {
40-
this._data += data.substring(start, end);
41-
}
42-
unhook(): void {
43-
// invalid: DCS 0 + r Pt ST
44-
this._terminal.handler(`${C0.ESC}P0+r${this._data}${C0.ESC}\\`);
45-
}
46-
}
47-
4828
/**
4929
* DCS $ q Pt ST
5030
* DECRQSS (https://vt100.net/docs/vt510-rm/DECRQSS.html)
@@ -87,7 +67,7 @@ class DECRQSS implements IDcsHandler {
8767
default:
8868
// invalid: DCS 0 $ r Pt ST (xterm)
8969
this._terminal.error('Unknown DCS $q %s', this._data);
90-
this._terminal.handler(`${C0.ESC}P0$r${this._data}${C0.ESC}\\`);
70+
this._terminal.handler(`${C0.ESC}P0$r${C0.ESC}\\`);
9171
}
9272
}
9373
}
@@ -288,7 +268,6 @@ export class InputHandler extends Disposable implements IInputHandler {
288268
* DCS handler
289269
*/
290270
this._parser.setDcsHandler('$q', new DECRQSS(this._terminal));
291-
this._parser.setDcsHandler('+q', new RequestTerminfo(this._terminal));
292271
}
293272

294273
public dispose(): void {

0 commit comments

Comments
 (0)