Skip to content

Commit

Permalink
fix: don't clear scrollback history
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwade authored and LarsDenBakker committed Dec 6, 2020
1 parent 77d2e87 commit 92f2061
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/unlucky-ads-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@web/dev-server': patch
'@web/test-runner-cli': patch
---

don't clear scrollback buffer
2 changes: 1 addition & 1 deletion packages/dev-server/src/logger/createLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Plugin } from '@web/dev-server-core';
import { DevServerLogger } from './DevServerLogger';
import { logStartMessage } from './logStartMessage';

const CLEAR_COMMAND = process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H';
const CLEAR_COMMAND = process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[H';

export interface LoggerArgs {
debugLogging: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-runner-cli/src/terminal/DynamicTerminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import logUpdate from 'log-update';
import cliCursor from 'cli-cursor';
import { BufferedConsole } from './BufferedConsole';

const CLEAR_COMMAND = process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H';
const CLEAR_COMMAND = process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[H';

interface EventMap {
input: string;
Expand Down

0 comments on commit 92f2061

Please sign in to comment.