On 29/08/2007, Niclas Hedhman <[EMAIL PROTECTED]> 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 the user hits enter) - however, you can get non-buffered input in Linux by using a 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 lib... 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) Cheers > -- > 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
