File tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/repl
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import org.jline.reader.impl.history.DefaultHistory
16
16
import org .jline .terminal .TerminalBuilder
17
17
import org .jline .utils .AttributedString
18
18
19
- final class JLineTerminal extends java.io.Closeable {
19
+ class JLineTerminal extends java.io.Closeable {
20
20
// import java.util.logging.{Logger, Level}
21
21
// Logger.getLogger("org.jline").setLevel(Level.FINEST)
22
22
@@ -30,7 +30,8 @@ final class JLineTerminal extends java.io.Closeable {
30
30
private def blue (str : String )(using Context ) =
31
31
if (ctx.settings.color.value != " never" ) Console .BLUE + str + Console .RESET
32
32
else str
33
- private def prompt (using Context ) = blue(" \n scala> " )
33
+ protected def promptStr = " scala"
34
+ private def prompt (using Context ) = blue(s " \n $promptStr> " )
34
35
private def newLinePrompt (using Context ) = blue(" | " )
35
36
36
37
/** Blockingly read line from `System.in`
You can’t perform that action at this time.
0 commit comments