bug-ncurses
[Top][All Lists]
Advanced

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

RE: Provide NCurses Bindings for Java


From: bend
Subject: RE: Provide NCurses Bindings for Java
Date: Tue, 27 Feb 2018 08:16:34 -0700
User-agent: Workspace Webmail 6.9.01

I've been working on something along these lines.

I was calling it libncapp - pretty nice feature set.
It was based upon the lines of of dialog, but designed to be linked to python/perl/php ..etc..
It was also an mashup of some of the things the old AppGen 4GL did.

It had a "debug" pop up section, tabbed screens, header, footer, status bar and required UTF and a 120 x 80 screen size.

Got the basic stuff all working and was going to address the mouse sections when the overwhelming need to
work and get paid overcame me.

Anyway, I never did find a place to park this project. Thinking maybe git ?

Ben Duncan - Business Network Solutions, Inc. 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor


-------- Original Message --------
Subject: Re: Provide NCurses Bindings for Java
From: Thomas Dickey <address@hidden>
Date: Mon, February 26, 2018 5:31 pm
To: Rudolf Schmidt <address@hidden>
Cc: address@hidden

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:

http://pyncurses.sourceforge.net/

(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>
https://invisible-island.net
ftp://ftp.invisible-island.net

_______________________________________________
Bug-ncurses mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ncurses

reply via email to

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