File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11import { IBuffer as IBufferApi , IBufferNamespace as IBufferNamespaceApi } from 'xterm' ;
22import { BufferApiView } from 'common/public/BufferApiView' ;
33import { IEvent , EventEmitter } from 'common/EventEmitter' ;
4- import { ITerminal } from 'browser/Types ' ;
4+ import { CoreTerminal } from 'common/CoreTerminal ' ;
55
66export class BufferNamespaceApi implements IBufferNamespaceApi {
77 private _normal : BufferApiView ;
88 private _alternate : BufferApiView ;
99 private _onBufferChange = new EventEmitter < IBufferApi > ( ) ;
1010 public get onBufferChange ( ) : IEvent < IBufferApi > { return this . _onBufferChange . event ; }
1111
12- constructor ( private _core : ITerminal ) {
12+ constructor ( private _core : CoreTerminal ) {
1313 this . _normal = new BufferApiView ( this . _core . buffers . normal , 'normal' ) ;
1414 this . _alternate = new BufferApiView ( this . _core . buffers . alt , 'alternate' ) ;
1515 this . _core . buffers . onBufferActivate ( ( ) => this . _onBufferChange . fire ( this . active ) ) ;
Original file line number Diff line number Diff line change 11import { IParams } from 'common/parser/Types' ;
2- import { ITerminal } from 'browser/Types ' ;
2+ import { CoreTerminal } from 'common/CoreTerminal ' ;
33import { IDisposable , IFunctionIdentifier , IParser } from 'xterm' ;
44
55export class ParserApi implements IParser {
6- constructor ( private _core : ITerminal ) { }
6+ constructor ( private _core : CoreTerminal ) { }
77
88 public registerCsiHandler ( id : IFunctionIdentifier , callback : ( params : ( number | number [ ] ) [ ] ) => boolean | Promise < boolean > ) : IDisposable {
99 return this . _core . registerCsiHandler ( id , ( params : IParams ) => callback ( params . toArray ( ) ) ) ;
Original file line number Diff line number Diff line change 1- import { ITerminal } from 'browser/Types ' ;
1+ import { CoreTerminal } from 'common/CoreTerminal ' ;
22import { IUnicodeHandling , IUnicodeVersionProvider } from 'xterm' ;
33
44export class UnicodeApi implements IUnicodeHandling {
5- constructor ( private _core : ITerminal ) { }
5+ constructor ( private _core : CoreTerminal ) { }
66
77 public register ( provider : IUnicodeVersionProvider ) : void {
88 this . _core . unicodeService . register ( provider ) ;
You can’t perform that action at this time.
0 commit comments