get
lastLength():number
- Last printed rows countget
outside():number
- Rows count outside editable areaget
isHooked():boolean
- Hook activity statusget
isSuspended():boolean
- Suspend status for active hooks
Method to get the object to control the streams update
static getInstance(
stdout: NodeJS.WriteStream = process.stdout,
stderr: NodeJS.WriteStream = process.stderr
): UpdateManager
Name | Type | Description |
---|---|---|
stdout |
WriteStream | process.stdout |
stderr |
WriteStream | process.stderr |
Removes from the bottom of output up the specified count of lines
Name | Type | Description |
---|---|---|
count |
number | undefined | number of lines to remove |
Hook stdout and stderr streams
Resume suspend hooks
Name | Type | Description |
---|---|---|
eraseRowCount |
number | undefined | erase output rows count |
Suspend active hooks for external output
Name | Type | Description |
---|---|---|
erase |
boolean | erase output |
Unhooks both stdout and stderr streams and print their story of logs
Name | Type | Description |
---|---|---|
separateHistory |
boolean | Default true , if true , will add an empty line to the history output for individual recorded lines and console logs |
Update output
Name | Type | Description |
---|---|---|
rows |
string[] | Text lines to write to standard output |
from |
number | undefined | Default 0 , index of the line starting from which the contents of the terminal are being overwritten |