How to set System.In to raw mode

Hi,

I am writing a virtual terminal on j2me cdc.

Everything works fine except the fact that when reading characters from System.in these

are buffered. This means that I will not get an echo for each character.

Therefore the question: How do I switch System.In to "raw" mode?

Thanks for any help

Uli

[342 byte] By [raich53a] at [2007-10-3 4:35:17]
# 1
Might be possible with JNI. It's not possible with the standard libraries. But then surely you're using AWT and can set up a KeyListener?
YAT_Archivista at 2007-7-14 22:39:00 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Thanks for the help. Unfortunately I do not use AWT but only the foundation profile. It should be possible to switch the mode on standard in, at least in unix, using the stty command which can be called from Java via the Runtime class. I tried, however no luck yetUli
raich53a at 2007-7-14 22:39:00 > top of Java-index,Java Mobility Forums,Java ME Technologies...