Skip to content

Commit

Permalink
Fix flickering (#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
onsclom authored Apr 5, 2024
1 parent b054635 commit 9e8ca03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/lib/screen-manager.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ export default class ScreenManager {
}

render(content: string, bottomContent: string = '') {
this.clean();

this.rl.output.unmute();
/**
* Write message to screen and setPrompt to control backspace
*/
Expand Down Expand Up @@ -72,6 +69,9 @@ export default class ScreenManager {
// Return cursor to the initial left offset.
output += ansiEscapes.cursorTo(this.cursorPos.cols);

this.clean();
this.rl.output.unmute();

/**
* Set up state for next re-rendering
*/
Expand Down

0 comments on commit 9e8ca03

Please # to comment.