[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Provide NCurses Bindings for Java

From: Thomas Dickey
Subject: Re: Provide NCurses Bindings for Java
Date: Mon, 26 Feb 2018 18:31:50 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Feb 26, 2018 at 08:55:08PM +0100, Rudolf Schmidt wrote:
> Hi,
> I took at look into charva, I see some bindings there, but the binding code
> looks quite complex.
> I also have take a look into https://github.com/mabe02/lanterna that seems
> to have some kind of bindings, too. I have found any c bindings yet.
> Even people did work incharva and lanterna, the projects seem pretty old and
> unmaintained and the bindings look complex.
> Is it difficult to create a lightweight wrapper between curses and java in
> your opinion?

to cover everything - probably.  Look at the Ada95 tree for example.
It is almost as large as the ncurses tree (2.1Mb vs 2.5Mb).
> Python and even a newer language golang have bindings for curses and java
> hasnt, its a shame.

Python has a shortcut, since
        (a) it's not strongly-typed, and
        (b) it can reference symbols in shared libraries without much work.

Of course the lack of type-checking is also a drawback.

This was more ambitious, but didn't continue:


(I looked into it about 10 years ago, but found that SWIG couldn't handle
the macros in ncurses headers...)

ncurses' C++ binding is also seen as limited, but (it's been a while)
no one's working on replacements.
> Can we do something for it? I would develop the java part for it and
> possible the c part with some help from you.

possibly - it's a lot of work
> Best Regards,
> Rudolf Schmidt
> On 02/24/2018 03:40 PM, Thomas Dickey wrote:
> >On Sat, Feb 24, 2018 at 02:42:19PM +0100, Rudolf Schmidt wrote:
> >>Hi,
> >>
> >>I develop in Java and struggle from the fact that this language offers no
> >>libraries to create terminal apps, even slower languages like Python does.
> >>
> >>I wonder if there is a way to create a binding between ncurses library and
> >>java.
> >>
> >>
> >>Did anyone try it and can tell me its experience? Do you face certain
> >>problems that are difficult to handle so that you can explain why Java has
> >>no bindings to (n)curses?
> >Someone did this a while back, i.e., "charva".
> >

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]