jubalh / jessy

a totally kafkaesque chess game
4 stars 3 forks source link

provide command history for command line interface #12

Closed jubalh closed 10 years ago

jubalh commented 10 years ago

User should be able to scroll through previous commands via upper arrow or something.

jubalh commented 10 years ago

Take a look at jline. But it looks like we have to port our project to Maven to easily use jline, which I know nothing about.

jubalh commented 10 years ago

Another option: Using read() / readLine() from java.io.console. But won't work under Eclipse since ther eis no Console to get. There is a little workaround. Then we still wont have history under eclipse, but at least in production mode. And we can debug remotely. Also here is an example of readLine

jubalh commented 10 years ago

Converted to Maven with commit: faa8acba81e82c6c14cbccd0d01f1aa1c07269e9 jline included with commit: e2b2fb3264aa68e4367c3ffd9655193a16f86fed