Print the current text for the spinner to the terminal.
(prefix: string, text?: string)
| 98 | |
| 99 | /** Print the current text for the spinner to the terminal. */ |
| 100 | private printNextLocalFrame(prefix: string, text?: string) { |
| 101 | cursorTo(process.stdout, 0); |
| 102 | process.stdout.write(` ${prefix} ${text || this.text}`); |
| 103 | // Clear to the right of the cursor location in case the new frame is shorter than the previous. |
| 104 | clearLine(process.stdout, 1); |
| 105 | } |
| 106 | |
| 107 | /** Print the next expected piece for the spinner to stdout for CI usage. */ |
| 108 | private printNextCIFrame(text?: string) { |