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

Revert "fix: erase scrollback when clearing the screen" #2349

Closed
Closed
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
2 changes: 1 addition & 1 deletion frontend/src/main/scala/bloop/engine/Interpreter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ object Interpreter {
}

if (!bloop.util.CrossPlatform.isWindows)
state.logger.info(bloop.util.Console.clearCommand)
state.logger.info("\u001b[H\u001b[2J")

// Force the first execution before relying on the file watching task
fg(state).flatMap(newState => watcher.watch(newState, fg))
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/main/scala/bloop/io/SourceWatcher.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class SourceWatcher private (
def runAction(state: State, events: Seq[DirectoryChangeEvent]): Task[State] = {
// Windows is not supported for now
if (!bloop.util.CrossPlatform.isWindows)
logger.info(bloop.util.Console.clearCommand)
logger.info("\u001b[H\u001b[2J") // Clean terminal before acting on the event action
events.foreach(e => logger.debug(s"A ${e.eventType()} in ${e.path()} has triggered an event"))
action(state)
}
Expand Down
10 changes: 0 additions & 10 deletions frontend/src/main/scala/bloop/util/Console.scala

This file was deleted.

Loading