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?
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
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.
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.
Post by:autobot
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