0

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.

2 Answers 2

2

You should take a look to Java curses library. I haven't use it but, it looks like what you want.

Sign up to request clarification or add additional context in comments.

Comments

0

This library may well be helpful: I created it in order to implement a small Rogelike game in Java:

It uses Swing to create a simulated console-style window.

2 Comments

This seems ideal. Could you compile this as a library .jar file for use? I'm having problems doing that myself.
Latest compiled versions are available on clojars: clojars.org/repo/net/mikera/swing-console

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.