Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.vms > #378627

Re: JLine for VMS

From cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups comp.os.vms
Subject Re: JLine for VMS
Date 2026-03-25 10:54 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <10q0esf$m74$1@reader2.panix.com> (permalink)
References <10pu8oa$10r0f$1@dont-email.me> <69c2d812$0$677$14726298@news.sunsite.dk> <10pvepe$c7m$1@reader2.panix.com> <10pvg1j$1g49c$1@dont-email.me>

Show all headers | View raw


In article <10pvg1j$1g49c$1@dont-email.me>,
Arne Vajhøj  <arne@vajhoej.dk> wrote:
>On 3/24/2026 9:46 PM, Dan Cross wrote:
>> In article <69c2d812$0$677$14726298@news.sunsite.dk>,
>> Arne Vajhøj  <arne@vajhoej.dk> wrote:
>>> On 3/24/2026 2:15 PM, Simon Clubley wrote:
>>>> On 2026-03-24, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>>> Anyone know of a port?
>>>>>
>>>>> It only supports FreeBSD, Linux, Mac (old style capitalization) and
>>>>> Windows out of the box:
>>>>>
>>>>
>>>> How far do you get when trying to build from source ?
>>>>
>>>> Any luck trying to make the build process think VMS is some form of Unix ?
>>>
>>> I started by asking. If someone had already done the work,
>>> then no need for me.
>>>
>>> The code is not big.
>>>
>>> https://github.com/jline/jline3/tree/master/native/src/main/native
>>>
>>> I guess it will end up in how *nix compatible VMS is.
>>>
>>> It is obvious from the code that the Windows version was a lot
>>> of work.
>> 
>> It looks like that's pretty deeply intertwined with the POSIX
>> termios interfaces.
>> 
>> What, exactly, are you trying to do?
>
>There are several Java applications that use JLine.
>
>It would be nice to be able to run them on VMS.
>
>Not all of those applications need JLine for
>basic functionality, but still nice to have.
>
>This is all JLine 3.x - if I remember correctly then
>JLine 2.x tries to run external stty utility, which does
>not work on VMS either.

Looking at the documentation, this seems to be a mashup of what
curses and GNU Readline provide on Unix-like systems.  Curses
works on VMS, but JLine seems to want to reach into the
pseudo-terminal system and do everything itself.  Reading
between the lines, it probably creates PTY master/slave pairs
behind the scenes, using JNI.

So if you'd like this to work on OpenVMS, you'll have to provide
either some sort of compatibility shim that looks like POSIX
termios, or reimplement those bits using native OpenVMS
primtives.

What I'd probably do is dig into the curses (or perhaps ncurses)
port and see what they do to bridge that gap, and then modify
JLine's JNI components similarly.

	- Dan C.

Back to comp.os.vms | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-24 10:57 -0400
  Re: JLine for VMS Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> - 2026-03-24 18:15 +0000
    Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-24 14:29 -0400
      Re: JLine for VMS "Craig A. Berry" <craigberry@nospam.mac.com> - 2026-03-24 15:13 -0500
        Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-24 16:34 -0400
      Re: JLine for VMS cross@spitfire.i.gajendra.net (Dan Cross) - 2026-03-25 01:46 +0000
        Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-24 22:07 -0400
          Re: JLine for VMS Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-25 04:40 +0000
            Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-25 11:02 -0400
          Re: JLine for VMS cross@spitfire.i.gajendra.net (Dan Cross) - 2026-03-25 10:54 +0000
            Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-25 11:12 -0400
              Re: JLine for VMS cross@spitfire.i.gajendra.net (Dan Cross) - 2026-03-25 18:43 +0000
          Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-25 20:40 -0400
            Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-27 12:41 -0400
              Re: JLine for VMS Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> - 2026-03-27 18:18 +0000
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-27 14:41 -0400
                Re: JLine for VMS Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> - 2026-03-27 18:54 +0000
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-27 15:12 -0400
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-27 15:14 -0400
                Re: JLine for VMS hb0815 <mw40171@mucweb.de> - 2026-03-28 21:39 +0100
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-28 17:33 -0400
                Re: JLine for VMS hb0815 <mw40171@mucweb.de> - 2026-03-28 23:25 +0100
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-28 21:24 -0400
                Re: JLine for VMS hb0815 <mw40171@mucweb.de> - 2026-03-29 12:34 +0200
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-28 21:27 -0400
                Re: JLine for VMS Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-29 03:19 +0000
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-29 10:13 -0400
                Re: JLine for VMS kludge@panix.com (Scott Dorsey) - 2026-03-29 11:05 -0400
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-29 15:51 -0400
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-29 16:03 -0400
                Re: JLine for VMS cross@spitfire.i.gajendra.net (Dan Cross) - 2026-03-30 01:39 +0000
                Re: JLine for VMS Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> - 2026-03-30 12:25 +0000
                Re: JLine for VMS Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-29 22:44 +0000
                Re: JLine for VMS hb0815 <mw40171@mucweb.de> - 2026-03-29 12:41 +0200
                Re: JLine for VMS Arne Vajhøj <arne@vajhoej.dk> - 2026-03-29 08:03 -0400
                Re: JLine for VMS hb0815 <mw40171@mucweb.de> - 2026-03-30 10:50 +0200
                Re: JLine for VMS Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-29 22:46 +0000

csiph-web