Interface: TwistersBuffer

Hierarchy

Implemented by

Index

Properties

Methods

Properties

Readonly isDisabled

isDisabled: boolean

Should be true if related stream is not TTY.

Methods

Optional cleanup

cleanup(): void

Called after the last update.

Returns: void


Optional init

init(): void

Called before the first update.

Returns: void


Optional teardown

teardown(): void

Called the first time a removed message is encountered.

Returns: void


Optional updateBegin

updateBegin(): void

Called before writing a group of buffered messages.

Returns: void


Optional updateEnd

updateEnd(): void

Called after writing a group of buffered messages.

Returns: void


write

write(text: string | null, isBuffered: boolean): void

Called to write text to the stream.

Implementation Notes:

Parameters:

Name Type
text string | null
isBuffered boolean

Returns: void