如何在 Kojo IDE 输出窗格中打印到同一行?

问题描述

在 Java 和 Scala 控制台中,以下代码有效:

scala> print("hello\r"); print("world")
world
scala> print("hello world\r"); print("world")
world world
scala> 

在 Scala 的增压弟弟中,菊石壳也没有什么惊喜:

Welcome to the Ammonite Repl 2.2.0 (Scala 2.13.3 Java 1.8.0_271)
ben-tmp@ print("hello!\r"); print("dear") 
dearo!

ben-tmp@

编译和运行的同一行代码在 Kojo 中不起作用。字符串连接到行尾。是错误还是我遗漏了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)