@@ -30,28 +30,9 @@ import { XTERM_VERSION } from 'common/Version';
3030 */
3131const GLEVEL : { [ key : string ] : number } = { '(' : 0 , ')' : 1 , '*' : 2 , '+' : 3 , '-' : 1 , '.' : 2 } ;
3232
33- /**
34- * VT commands done by the parser - FIXME: move this to the parser?
35- */
36- // @vt : #Y ESC CSI "Control Sequence Introducer" "ESC [" "Start of a CSI sequence."
37- // @vt : #Y ESC OSC "Operating System Command" "ESC ]" "Start of an OSC sequence."
38- // @vt : #Y ESC DCS "Device Control String" "ESC P" "Start of a DCS sequence."
39- // @vt : #Y ESC ST "String Terminator" "ESC \" "Terminator used for string type sequences."
40- // @vt : #Y ESC PM "Privacy Message" "ESC ^" "Start of a privacy message."
41- // @vt : #Y ESC APC "Application Program Command" "ESC _" "Start of an APC sequence."
42- // @vt : #Y C1 CSI "Control Sequence Introducer" "\x9B" "Start of a CSI sequence."
43- // @vt : #Y C1 OSC "Operating System Command" "\x9D" "Start of an OSC sequence."
44- // @vt : #Y C1 DCS "Device Control String" "\x90" "Start of a DCS sequence."
45- // @vt : #Y C1 ST "String Terminator" "\x9C" "Terminator used for string type sequences."
46- // @vt : #Y C1 PM "Privacy Message" "\x9E" "Start of a privacy message."
47- // @vt : #Y C1 APC "Application Program Command" "\x9F" "Start of an APC sequence."
48- // @vt : #Y C0 NUL "Null" "\0, \x00" "NUL is ignored."
49- // @vt : #Y C0 ESC "Escape" "\e, \x1B" "Start of a sequence. Cancels any other sequence."
50-
5133/**
5234 * Document xterm VT features here that are currently unsupported
5335 */
54- // @vt : #E[Supported via @xterm/addon-image.] DCS SIXEL "SIXEL Graphics" "DCS Ps ; Ps ; Ps ; q Pt ST" "Draw SIXEL image."
5536// @vt : #N DCS DECUDK "User Defined Keys" "DCS Ps ; Ps \| Pt ST" "Definitions for user-defined keys."
5637// @vt : #N DCS XTGETTCAP "Request Terminfo String" "DCS + q Pt ST" "Request Terminfo String."
5738// @vt : #N DCS XTSETTCAP "Set Terminfo Data" "DCS + p Pt ST" "Set Terminfo Data."
@@ -211,6 +192,9 @@ export class InputHandler extends Disposable implements IInputHandler {
211192 }
212193 this . _logService . debug ( 'Unknown DCS code: ' , { identifier : this . _parser . identToString ( ident ) , action, payload } ) ;
213194 } ) ;
195+ this . _parser . setApcHandlerFallback ( ( ident , action , payload ) => {
196+ this . _logService . debug ( 'Unknown APC code: ' , { identifier : this . _parser . identToString ( ident ) , action, payload } ) ;
197+ } ) ;
214198
215199 /**
216200 * print handler
@@ -729,8 +713,8 @@ export class InputHandler extends Disposable implements IInputHandler {
729713 /**
730714 * Forward registerApcHandler from parser.
731715 */
732- public registerApcHandler ( ident : number , callback : ( data : string ) => boolean | Promise < boolean > ) : IDisposable {
733- return this . _parser . registerApcHandler ( ident , new ApcHandler ( callback ) ) ;
716+ public registerApcHandler ( id : IFunctionIdentifier , callback : ( data : string ) => boolean | Promise < boolean > ) : IDisposable {
717+ return this . _parser . registerApcHandler ( id , new ApcHandler ( callback ) ) ;
734718 }
735719
736720 /**
0 commit comments