How to get carriage return without line feed effect in Eclipse console?(如何在 Eclipse 控制台中获得没有换行效果的回车?)
问题描述
如果我
System.out.print("something
");
在控制台,光标回到行首,最后在
at console, I have cursor back at the beginning of line, and finally after
System.out.print("something
");
System.out.print(" any
");
我有
anything
打字.
但是在 Eclipse 控制台我得到了
But at Eclipse console I get
something
anything
好像它把
当作 CR/LF.
as if it treated
as CR/LF.
我该如何设置?
推荐答案
正如 Nishant 在评论中已经指出的那样,你在这里发现了一个错误.
As Nishant already pointed out in the comments, you've found a bug here.
这个错误最初是在 2004 年报告的(>9 年前!?!!),而且这个错误似乎不会很快修复(或永远不会).我在几个 Eclipse 版本上进行了测试,甚至在 Eclipse Juno SR2 上也进行了测试,但 bug 仍然存在.
This bug initially was reported in 2004 (>9 years ago!?!!) and this bug seems not to be fixed very soon (or ever). I tested it on several Eclipse version, even on Eclipse Juno SR2, and the bug is still there.
这篇关于如何在 Eclipse 控制台中获得没有换行效果的回车?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Eclipse 控制台中获得没有换行效果的回车


- 未找到/usr/local/lib 中的库 2022-01-01
- 如何使 JFrame 背景和 JPanel 透明且仅显示图像 2022-01-01
- Eclipse 的最佳 XML 编辑器 2022-01-01
- 将 Java Swing 桌面应用程序国际化的最佳实践是什么? 2022-01-01
- 如何指定 CORS 的响应标头? 2022-01-01
- 获取数字的最后一位 2022-01-01
- 在 Java 中,如何将 String 转换为 char 或将 char 转换 2022-01-01
- java.lang.IllegalStateException:Bean 名称“类别"的 BindingResult 和普通目标对象都不能用作请求属性 2022-01-01
- 转换 ldap 日期 2022-01-01
- GC_FOR_ALLOC 是否更“严重"?在调查内存使用情况时? 2022-01-01