From 8ecff02808deb869b32b206be7105441d3448e15 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Wed, 29 Oct 2025 21:57:40 +0800 Subject: [PATCH 1/2] . --- compiler/src/dotty/tools/repl/JLineTerminal.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/src/dotty/tools/repl/JLineTerminal.scala b/compiler/src/dotty/tools/repl/JLineTerminal.scala index fc193667154d..decf5c418a41 100644 --- a/compiler/src/dotty/tools/repl/JLineTerminal.scala +++ b/compiler/src/dotty/tools/repl/JLineTerminal.scala @@ -32,12 +32,12 @@ class JLineTerminal extends java.io.Closeable { builder.build() private val history = new DefaultHistory - private def blue(str: String)(using Context) = - if (ctx.settings.color.value != "never") Console.BLUE + str + Console.RESET + private def purple(str: String)(using Context) = + if (ctx.settings.color.value != "never") Console.MAGENTA + str + Console.RESET else str - protected def promptStr = "scala" - private def prompt(using Context) = blue(s"\n$promptStr> ") - private def newLinePrompt(using Context) = blue(" | ") + protected def promptStr = "@" + private def prompt(using Context) = purple(s"\n$promptStr ") + private def newLinePrompt(using Context) = purple(" ") /** Blockingly read line from `System.in` * From e550559bf8a3a597b5b077c44baa7175ff593a9e Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Thu, 6 Nov 2025 17:11:19 +0800 Subject: [PATCH 2/2] fix --- repl/src/dotty/tools/repl/JLineTerminal.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repl/src/dotty/tools/repl/JLineTerminal.scala b/repl/src/dotty/tools/repl/JLineTerminal.scala index b9c961095a15..f75c781d43d3 100644 --- a/repl/src/dotty/tools/repl/JLineTerminal.scala +++ b/repl/src/dotty/tools/repl/JLineTerminal.scala @@ -33,12 +33,12 @@ class JLineTerminal extends java.io.Closeable { builder.build() private val history = new DefaultHistory - private def purple(str: String)(using Context) = - if (ctx.settings.color.value != "never") Console.MAGENTA + str + Console.RESET + private def blue(str: String)(using Context) = + if (ctx.settings.color.value != "never") Console.BLUE + str + Console.RESET else str - protected def promptStr = "@" - private def prompt(using Context) = purple(s"\n$promptStr ") - private def newLinePrompt(using Context) = purple(" ") + protected def promptStr = "scala" + private def prompt(using Context) = blue(s"\n$promptStr> ") + private def newLinePrompt(using Context) = " " /** Blockingly read line from `System.in` *