File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/resources/META-INF/frontend/fc-xterm Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -261,16 +261,16 @@ type Constructor<T = {}> = new (...args: any[]) => T;
261261export function XTermConsoleMixin < TBase extends Constructor < TerminalMixin > > ( Base : TBase ) {
262262 return class XTermConsoleMixin extends Base implements IConsoleMixin {
263263
264- _addon ? : ConsoleAddon ;
264+ _consoleAddon ? : ConsoleAddon ;
265265 escapeEnabled : Boolean ;
266266 prompt : string ;
267267
268268 connectedCallback ( ) {
269269 super . connectedCallback ( ) ;
270270
271- this . _addon = new ConsoleAddon ( ) ;
272- this . _addon . $ = this ;
273- this . node . terminal . loadAddon ( this . _addon ) ;
271+ this . _consoleAddon = new ConsoleAddon ( ) ;
272+ this . _consoleAddon . $ = this ;
273+ this . node . terminal . loadAddon ( this . _consoleAddon ) ;
274274 }
275275
276276 get insertMode ( ) : Boolean {
@@ -286,12 +286,12 @@ export function XTermConsoleMixin<TBase extends Constructor<TerminalMixin>>(Base
286286 }
287287
288288 get currentLine ( ) : string {
289- return this . _addon . currentLine ;
289+ return this . _consoleAddon . currentLine ;
290290 }
291291
292292 writePrompt ( ) {
293293 //execute writePrompt with blocking semantics
294- this . node . terminal . write ( '' , ( ) => this . _addon . writePrompt ( ) ) ;
294+ this . node . terminal . write ( '' , ( ) => this . _consoleAddon . writePrompt ( ) ) ;
295295 }
296296
297297 }
You can’t perform that action at this time.
0 commit comments