Skip to content

Commit

Permalink
fix(dev): do not clear screen when dev server starts (#6719)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori authored Jun 28, 2023
1 parent a91ddce commit 3775f30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .changeset/tasty-bats-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@remix-run/dev": patch
---

Do not clear screen when dev server starts

On some terminal emulators, "clearing" only scrolls the next line to the
top. on others, it erases the scrollback.

Instead, let users call `clear` themselves (`clear && remix dev`) if
they want to clear.
2 changes: 0 additions & 2 deletions packages/remix-dev/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ export async function dev(
tlsCert?: string;
} = {}
) {
// clear screen
process.stdout.write("\x1Bc");
console.log(`\n 💿 remix dev\n`);

if (process.env.NODE_ENV && process.env.NODE_ENV !== "development") {
Expand Down

0 comments on commit 3775f30

Please sign in to comment.