By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

DOS style menu

P: n/a
Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected? Anyway
I havent figured out how to make that kind of console
menus, whereby the choices can be highlighted and the
enter key selects the choice. Anybody know how to do
this with Java?
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
nos
you should see the fancy character oriented stuff
that does this sort of thing in windows 386

"Yang Li" <yu*********@verizon.net> wrote in message
news:qy*******************@nwrdny02.gnilink.net...
Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected? Anyway
I havent figured out how to make that kind of console
menus, whereby the choices can be highlighted and the
enter key selects the choice. Anybody know how to do
this with Java?

Jul 17 '05 #2

P: n/a
Yang,

"Yang Li" <yu*********@verizon.net> wrote in message
news:qy*******************@nwrdny02.gnilink.net...

Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected ?

Great stuff was possible [using x86 assembler, or Turbo Pascal, or ANSI
escape codes sent via the PROMPT command in batch files] even earlier under
DOS 2.x and up :) ! Tools like the Norton Utilities and Commander even
brought such possibilities to the masses !

Anyway I havent figured out how to make that kind of
console menus, whereby the choices can be highlighted and
the enter key selects the choice.

Nor will you, as the kind of 'tight' keyboard control [e.g. respond to
single key strokes without the need to press ENTER] required for such
[console-based] applications is not possible using native Java. Suitable JNI
routines need to be used.

Anybody know how to do this with Java?


The easiest way is probably to do a web search for a Java implemention of
the UNIX Curses package. I remember looking at product [in beta testing at
that time] called JCurses some time ago which may well offer the
functionality you require.

I hope this helps.

Anthony Borla
Jul 17 '05 #3

P: n/a
> Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected? Anyway
I havent figured out how to make that kind of console
menus, whereby the choices can be highlighted and the
enter key selects the choice. Anybody know how to do
this with Java?


Take a look at Charva: http://www.pitman.co.za/projects/charva/index.html

// Stefan L. Jensen
Jul 17 '05 #4

P: n/a
Yang Li wrote:
Does anybody remember the golden old days of Win95 and
start-up disks driven by a simple console interface with
a few choices that can be highlighted and selected? Anyway
I havent figured out how to make that kind of console
menus, whereby the choices can be highlighted and the
enter key selects the choice. Anybody know how to do
this with Java?


Not that I have looked into it, but I saw about the same question on the
Danish Java group recently, and here was the answer :

En søgen på Google giver følgende:
<http://www.pitman.co.za/projects/charva/index.html>

Der er tale om en AWT og Swing wrapper, så man på let vis kan gøre
eksisterende GUI-programmer tekstuelle. Smart ser det ud bortset fra at gør
brug af GNU ncurses via JNI. Siden linker også til en ASCII-udgave af AWT,
men denne virker ikke med Java 2 og er derfor nok ikke så interessant.

Google gav også følgende: <http://www.nongnu.org/jcurzez/>. Det er måske
denne du tænker på?

Check those links ?

Soren

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.