felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch" <stuart.mccull...@jayway.net>
Subject Re: Felix Shell TUI and JLine
Date Wed, 29 Aug 2007 09:26:16 GMT
On 29/08/2007, Niclas Hedhman <niclas@hedhman.org> wrote:
> On Wednesday 29 August 2007 15:27, Karl Pauls wrote:
> > it used shutdown hooks to switch the tty back to buffered mode;
> > and the native code (which is only used for windows btw.) didn't work
> > for me under XP.
> I must be dense, but why is such library going down to the shell/native at
> all??

the standard JDK system input is buffered (ie. you only get the data when
user hits enter) - however, you can get non-buffered input in Linux by using
non-buffered input stream connected to a TTY set to cbreak mode

on Windows things are more tricky, hence the need for the extra native

How does tab completion have any clue that "bun<tab>" means "bundle " and
> can
> only be followed by bundle IDs of installed bundles??

the shell TUI would configure JLine to do this

And how hard could it be to do such support directly in Shell TUI??

well, you'd need access to a non-echoing, non-buffering input otherwise
a) the user would see the tab and b) the shell wouldn't get the tab until
the user hit enter...

unfortunately getting this non-echoing, non-buffering input is non-trivial
and you'd probably end up duplicating a lot of JLine (or using script files)

> --
> Niclas Hedhman, Software Developer
> I  live here; http://tinyurl.com/2qq9er
> I  work here; http://tinyurl.com/2ymelc
> I relax here; http://tinyurl.com/2cgsug

Cheers, Stuart

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message