Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev): do not clear screen when dev server starts #6719

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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