Java - 编程一个双向控制台窗口 [英] Java - programming a two-way console window
问题描述
我有兴趣在Java中创建一个基于文本的游戏,我想知道如何复制公共服务器控制台(例如:necui服务器模式在minecraft服务器中),因为在总是有一行在底部的控制台输入,以上一切以上的输出可以异步写入。
I am interested in creating a text-based game in Java and am wondering how I would replicate the common server console (ie: nogui server mode in the minecraft-server for example) - as in there is always a line at the bottom of the console for input, and everything else above it is output which can be written to asynchronously.
我如何开始这个?我不熟悉这类材料的术语,以及开始使用哪些库。
How would I get started on this? I am unfamiliar with the terminology regarding this sort of stuff and also what libraries to use to begin with.
推荐答案
请查看 Java curses库。我没有使用它,但它看起来像你想要的。
You should take a look to Java curses library. I haven't use it but, it looks like what you want.
这篇关于Java - 编程一个双向控制台窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!