Skip to content
Permalink
Browse files

Fix display flickering

  • Loading branch information...
lithiumjs committed May 9, 2019
1 parent 2801e11 commit fe55cc866e21d2fe0ab170761f69cd202afaa556
Showing with 2 additions and 2 deletions.
  1. +2 −2 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");
@@ -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}, ` +

0 comments on commit fe55cc8

Please sign in to comment.
You can’t perform that action at this time.