Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


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

[Advanced-java] disabling echo on System.in and Good Java programming resources


  • From: gdesnoix@xxxxxxxxxxxxxxxxx (Guillaume Desnoix)
  • Subject: [Advanced-java] disabling echo on System.in and Good Java programming resources
  • Date: Wed, 23 Jan 2002 18:22:50 +0100

Tim Roberts wrote:

> Hi All,
> Is there a way to disable the console echo on the System.in stream? I'm sure
> this must have been asked before, and it doesn't sound very advanced, but I
> haven't been able to find an answer from my usual sources.


It is not possible at the Java level because you can not access the 
terminal properties. The only way would be to use JNI to set the 
canonical mode (ioctl). You can also use the command "/bin/stty -icanon".

Regards, Guillaume

--
Source Code Translator ? Alma
http://www.memoire.com/guillaume-desnoix/alma/