summaryrefslogtreecommitdiff
path: root/src/misc/cli
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-25 12:52:17 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-25 13:30:59 +0900
commit01703e558458fd1a90ad2945631e67a6ebb93158 (patch)
treef9c62c7b68c0e84f49e9fdbf35d2639cd93975b7 /src/misc/cli
parentMerge pull request #1965 from syuilo/l10n_master (diff)
downloadsharkey-01703e558458fd1a90ad2945631e67a6ebb93158.tar.gz
sharkey-01703e558458fd1a90ad2945631e67a6ebb93158.tar.bz2
sharkey-01703e558458fd1a90ad2945631e67a6ebb93158.zip
Fix #1975
Diffstat (limited to 'src/misc/cli')
-rw-r--r--src/misc/cli/indicator.ts35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/misc/cli/indicator.ts b/src/misc/cli/indicator.ts
deleted file mode 100644
index 3e23f9b274..0000000000
--- a/src/misc/cli/indicator.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import * as readline from 'readline';
-
-/**
- * Indicator
- */
-export default class {
- private clock: NodeJS.Timer;
-
- constructor(text: string) {
- let i = 0; // Dots counter
-
- draw();
- this.clock = setInterval(draw, 300);
-
- function draw(): void {
- cll();
- i = (i + 1) % 4;
- const dots = new Array(i + 1).join('.');
- process.stdout.write(text + dots); // Write text
- }
- }
-
- public end(): void {
- clearInterval(this.clock);
- cll();
- }
-}
-
-/**
- * Clear current line
- */
-function cll(): void {
- readline.clearLine(process.stdout, 0); // Clear current text
- readline.cursorTo(process.stdout, 0, null); // Move cursor to the head of line
-}