Date: Tue, 03 Mar 2015 11:07:04 +0100 From: "Ronald Klop" <ronald-lists@klop.ws> To: freebsd-java@freebsd.org, "Matthias Apitz" <guru@unixarea.de> Subject: Re: read unbuffered from STDIN Message-ID: <op.xuw2d2jhkndu52@ronaldradial.radialsg.local> In-Reply-To: <20150227150046.GA4811@c720-r276659> References: <20150227142014.GA4468@c720-r276659> <20150227150046.GA4811@c720-r276659>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 27 Feb 2015 16:00:46 +0100, Matthias Apitz <guru@unixarea.de> = wrote: > El d=EDa Friday, February 27, 2015 a las 03:20:14PM +0100, Matthias Ap= itz = > escribi=F3: > >> This does not work in FreeBSD+eclipse and as well not when started as= >> >> $ javac reader.java >> $ java -cp . reader > > It does work when one does: > > $ stty raw ; java -cp . reader > Enter characters, 'q' to quit. > a > a > a > > Any ideas how to issue the 'stty raw' from within the java classes? > > matthias > I have never used them, but java.io.Console and java.util.Scanner might = = solve your issue. http://docs.oracle.com/javase/7/docs/api/index.html?java/util/Scanner.ht= ml http://docs.oracle.com/javase/7/docs/api/index.html?java/io/Console.html= Regards, Ronald.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.xuw2d2jhkndu52>