Skip to content

Commit

Permalink
Swap ansi-escapes for a working cross platform clear (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
stramel committed Jun 1, 2020
1 parent 46d3379 commit 11ca3d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"@rollup/plugin-replace": "^2.1.0",
"@types/http-proxy": "^1.17.4",
"@types/tar": "^4.0.3",
"ansi-escapes": "^4.3.1",
"cacache": "^15.0.0",
"cachedir": "^2.3.0",
"chalk": "^4.0.0",
Expand Down
3 changes: 1 addition & 2 deletions src/commands/paint.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import ansiEscapes from 'ansi-escapes';
import chalk from 'chalk';
import {EventEmitter} from 'events';
import readline from 'readline';
Expand Down Expand Up @@ -52,7 +51,7 @@ export function paint(
}

function repaint() {
process.stdout.write(ansiEscapes.clearTerminal);
process.stdout.write(process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H');
process.stdout.write(`${chalk.bold('Snowpack')}\n\n`);
// Dashboard
if (devMode) {
Expand Down

0 comments on commit 11ca3d0

Please sign in to comment.