Skip to content

Commit

Permalink
Fix display flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
lithium committed May 9, 2019
1 parent 2801e11 commit fe55cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
@@ -1,6 +1,6 @@
const alphabet = "abcdefghijklmnopqrstuvwxyz".split(""); // change this string if you need a different alphabet

console.log("Loading...");
console.log("\x1bc" + "Loading...");

const config = require("./config.json");
const Getter = require("./getter.js");
Expand Down Expand Up @@ -65,7 +65,7 @@ getter.on("data", comment => {
if (stats.commentCount % 100 == 0) {
const totalVotes = Object.values(stats.votes).reduce((a, b) => a + b);

process.stdout.write("\x1bc");
process.stdout.write("\x1b[0;0f");

console.log(`${stats.commentCount}/${stats.videoStats.commentCount} comments, ` +
`${fg.light_green}${totalVotes} valid votes${util.colors.reset}, ` +
Expand Down

0 comments on commit fe55cc8

Please sign in to comment.