[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Java InputStreams
Yea I did and you will not like it.
I know C so I wrote some JNI to do all my communications on a serial
port. Worked great.
On Thu, 2004-03-25 at 19:21, Mike Thompson wrote:
> Mr. Fowler,
> I noticed a posting of yours on the Atlanta Java
> Users Group forum concerning reading a byte at a time
> from System.in.
>
> http://www.ajug.org/archive/ajug-members/10301/msg00034.html
>
> It looks like you may have had a solution, but had
> some socket closing issues at the end. I'm attempting
> to do something similar from a device hooked up to
> /dev/tty0. I can only seem to get input if a hard
> [ENTER] is pressed. I tried wrapping the call to java
> with :
>
> stty -F /dev/tty0 -icanon -echo
> java XXX
> stty -F /dev/tty0 canon echo
>
> and it still seems to be waiting for a hard [ENTER] to
> be pressed. Did you come up with any other solutions?
> Thanks for your time!
> --m
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> http://taxes.yahoo.com/filing.html