Re: DOS style menu

From: Anthony Borla (ajborla_at_bigpond.com)
Date: 10/31/03


Date: Fri, 31 Oct 2003 03:51:27 GMT

Yang,

"Yang Li" <yuxinglivze@verizon.net> wrote in message
news:qygob.47641$1C5.19891@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



Relevant Pages

  • Re: Some Program Crash Instatly! Why??
    ... Vodafone connection manager for external usb modem they will close ... I get this problem mostly when there is a problem with Java. ... From the Console menu bar, select File> View System Log. ...
    (comp.sys.mac.system)
  • Re: Java Embedded Script Language
    ... Interfaces im Sinne von GUIs war es doch, ... Naja, wenn du die swing Console nimmst, dann kannst du den Code einfach eingeben und nacher abspeichern. ... ja, das ist in Groovy geschrieben, allerdings compiliert das auch einfach zu .class, du kannst es also ganz normal von Java aus nutzen. ...
    (de.comp.lang.java)
  • Re: Java RL and the UI
    ... have decided to do it in Java since it's the language I know best these days. ... On the other hand, JCurses only works ... Emulating a console means more work, however will give you freedom to ... spice your game appearance while still retaining its console look. ...
    (rec.games.roguelike.development)
  • java.lang.NoSuchMethodException:
    ... the Java Console show errors: ... Java Plug-in 1.5.0_01 ... Using JRE version 1.5.0_01 Java HotSpotClient VM ... v: dump thread stack ...
    (comp.lang.java.programmer)
  • Re: Command Line Interface
    ... This is somewhat I am aiming for, to be honest my idea for this is Java ... Netbean's 'console window' which it uses for user input and output. ... [user enters string and conv to double] ... CString GetString() ...
    (microsoft.public.vc.mfc)