Skip to content

Commit

Permalink
Automatically refresh screen on console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Apr 29, 2021
1 parent 0616035 commit 5592183
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ui/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const logs = new Logs({
const writeln = function (line) {
const l = logs._parseTags(line);
logs.writeSync(l + '\n');
if (logs.attached) {
logs.screen.render();
}
};

console.log = function (...args) {
Expand Down

0 comments on commit 5592183

Please sign in to comment.