expose IBufferSet API

This commit is contained in:
javacs3
2020-03-22 12:10:02 +08:00
parent bc9aaebd04
commit 5fdbd7428b
2 changed files with 35 additions and 2 deletions
+13
View File
@@ -576,6 +576,11 @@ declare module 'xterm' {
*/
readonly buffer: IBuffer;
/**
* (EXPERIMENTAL) The terminal's current bufferSet.
*/
readonly buffers: IBufferSet;
/**
* (EXPERIMENTAL) Get all markers registered against the buffer. If the alt
* buffer is active this will always return [].
@@ -1217,6 +1222,14 @@ declare module 'xterm' {
getNullCell(): IBufferCell;
}
interface IBufferSet {
readonly alt: IBuffer;
readonly normal: IBuffer;
readonly active: IBuffer;
onBufferActivate: IEvent<{ activeBuffer: IBuffer, inactiveBuffer: IBuffer }>;
}
/**
* Represents a line in the terminal's buffer.
*/