Add missing api docs

This commit is contained in:
Daniel Imms
2020-04-10 10:02:09 -07:00
parent f4f15ee5e9
commit 89daacac32
+21 -2
View File
@@ -1222,11 +1222,30 @@ declare module 'xterm' {
getNullCell(): IBufferCell;
}
/**
* Represents the terminal's set of buffers.
*/
interface IBufferNamespace {
readonly alternate: IBuffer;
readonly normal: IBuffer;
/**
* The active buffer, this will either be the normal or alternate buffers.
*/
readonly active: IBuffer;
/**
* The normal buffer.
*/
readonly normal: IBuffer;
/**
* The alternate buffer, this becomes the active buffer when an application
* enters this mode via DECSET (`CSI ? 4 7 h`)
*/
readonly alternate: IBuffer;
/**
* Adds an event listener for when the active buffer changes.
* @returns an `IDisposable` to stop listening.
*/
onBufferChange: IEvent<IBuffer>;
}