Skip to content

Commit

Permalink
Revert "fix: erase scrollback when clearing the screen (scalacenter#2267
Browse files Browse the repository at this point in the history
)"

This reverts commit 00b715a.
  • Loading branch information
s-nel authored Jun 5, 2024
1 parent 8c41607 commit 2875599
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
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.

0 comments on commit 2875599

Please sign in to comment.