Rename setting to experimentalBufferLineImpl, expose in d.ts
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ export class Buffer implements IBuffer {
|
||||
* Clears the buffer to it's initial state, discarding all previous data.
|
||||
*/
|
||||
public clear(): void {
|
||||
this.setBufferLineFactory(this._terminal.options.bufferLineConstructor);
|
||||
this.setBufferLineFactory(this._terminal.options.experimentalBufferLineConstructor);
|
||||
this.ydisp = 0;
|
||||
this.ybase = 0;
|
||||
this.y = 0;
|
||||
|
||||
+2
-2
@@ -106,7 +106,7 @@ const DEFAULT_OPTIONS: ITerminalOptions = {
|
||||
theme: null,
|
||||
rightClickSelectsWord: Browser.isMac,
|
||||
rendererType: 'canvas',
|
||||
bufferLineConstructor: 'JsArray'
|
||||
experimentalBufferLineImpl: 'JsArray'
|
||||
};
|
||||
|
||||
export class Terminal extends EventEmitter implements ITerminal, IDisposable, IInputHandlingTerminal {
|
||||
@@ -493,7 +493,7 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
|
||||
}
|
||||
break;
|
||||
case 'tabStopWidth': this.buffers.setupTabStops(); break;
|
||||
case 'bufferLineConstructor':
|
||||
case 'experimentalBufferLineImpl':
|
||||
this.buffers.normal.setBufferLineFactory(value);
|
||||
this.buffers.alt.setBufferLineFactory(value);
|
||||
break;
|
||||
|
||||
@@ -263,7 +263,6 @@ export interface ITerminalOptions extends IPublicTerminalOptions {
|
||||
screenKeys?: boolean;
|
||||
termName?: string;
|
||||
useFlowControl?: boolean;
|
||||
bufferLineConstructor?: string;
|
||||
}
|
||||
|
||||
export interface IBuffer {
|
||||
|
||||
Reference in New Issue
Block a user