What good Java curses-like library for terminal applications?

I would like to write a Java terminal application that performs screen manipulation. Are there any good libraries that allow you to manipulate the screen like curses in the * nix / C world?

The minimum features I'm looking for are windows and user support.

In the talk function, I would like to have a terminal area where some data is updated regularly while (at the same time) the user can enter commands / text in some other part of the screen.

+78
java terminal console gnu-screen console-application
Jan 13 '09 at 16:56
source share
5 answers

There is Charva that references native code but has Swing based api. screenshots shows a lot of text windows, so it looks useful.

+30
Jan 13 '09 at 17:06
source share

I recently found the lanterna library. I have not had the opportunity to use it yet, but it looks like a more modern alternative to others.

+41
Oct. 15 '12 at 13:21
source share

I haven't used it myself, but the Java Curses Library sounds the way you want.

+19
Jan 13 '09 at 16:58
source share

Here is a way to call ncurses lib using JNI. I tested this and it works.

+5
Jan 13 '09 at 17:12
source share

Since 2013, the closest I can find is Blacken .

Blacken is not a curses per se library. It moves away from the terminal and displays a "console window" instead. This has a drawback because it does not look "console". Instead, you get full (arbitrary) color support and a curses-like API (in addition to their main API).

You can also set the Mono font for fixed-width characters.

+2
Nov 20 '13 at 17:52
source share



All Articles