Forums Register Login

Keypressing on console or Dos prompt

+Pie Number of slices to send: Send
anyone remember the Dos prompt and the inscription "Press enter to continue... "

so... i want to control the pressing of the button "Enter" on Dos Prompt. How to do this.
It's pretty easy to do this on a JFrame, but how to do it on dos or console?
+Pie Number of slices to send: Send
Hi Pal,
I think the best way to do this is using win32 API's.
If you are bent on using java, write a dll and call it
from java.
+Pie Number of slices to send: Send
i'm a beginner is really too difficoult this to me. Is there a simplest way? i only need to make and if that control if enter is pressed on console or dos prompt
+Pie Number of slices to send: Send
Have you worked out how to read input from the console? You can wrap a reader around System.in and readln(). That will require the user to hit the enter key to continue.
+Pie Number of slices to send: Send
Two choices. For the simple "press enter to continue," you can just read a byte from System.in:However, for more complicated stuff, I'm lead to believe there's a Java-based ncurses implementation. I don't know if this will include support for DOS terminals.
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 986 times.
Similar Threads
Error - ; expected
How to enter password on DOS prompt !
Urgent! Hide Tomcat console and run it in NT services
how to clear console in java ?
Javac compiler won't start!! can't compile any code
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:09:33.