+ new LineBuffer(options?
: Partial‹LineBufferOptions›): LineBuffer
Parameters:
Name | Type |
---|---|
options? |
Partial‹LineBufferOptions› |
Returns: LineBuffer
Readonly
isDisabled• isDisabled: boolean
Implementation of TwistersBuffer.isDisabled
• lineCount: number
Buffered line count.
• options: LineBufferOptions
Configuration options.
▸ cleanup(): void
Implementation of TwistersBuffer
remarks
If the handleSigint option is false, this method should be called from any custom
sigint handler.
Returns: void
▸ init(): void
Implementation of TwistersBuffer
Returns: void
▸ teardown(): void
Implementation of TwistersBuffer
Clear from the cursor to the end of the screen.
Returns: void
▸ updateBegin(): void
Implementation of TwistersBuffer
Reset the line counter.
Returns: void
▸ updateEnd(): void
Implementation of TwistersBuffer
Returns: void
▸ write(text
: string | null, isBuffered
: boolean): void
Implementation of TwistersBuffer
Write text to the stream.
Usage Notes:
updateStart
method should be called to start an update batch before writing buffered messages.updateEnd
method should be called to signify the end of an update batch after messages are written.Parameters:
Name | Type | Default |
---|---|---|
text |
string | null | - |
isBuffered |
boolean | true |
Returns: void