Re: Java Unix Shell "Simulator"



andrevcunha@xxxxxxxxx wrote:
I know that have some stuffs to send commands and "read" output, but a
need for something that only unix shell can do, like press the TAB key
to complete the word, etc etc.

You can't in a good general way in Java alone. Java lacks the necessary access to terminal features. E.g. you can't switch standard input to unbuffered character input from within Java. You will have to use native, platform dependent code.

Do you know any thing that can help me?!

Don't do it. Use a real shell.

/Thomas
--
The comp.lang.java.gui FAQ:
http://gd.tuwien.ac.at/faqs/faqs-hierarchy/comp/comp.lang.java.gui/
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
.



Relevant Pages

  • Re: Java Unix Shell "Simulator"
    ... You can't in a good general way in Java alone. ... the OP might use a textbox ... with respect to the cursor, the arrow keys, the tab key, etc. which will ... "ruin" the illusion that the user is using a unix shell. ...
    (comp.lang.java.help)
  • Re: Java Unix Shell "Simulator"
    ... Java lacks the necessary access to terminal features. ... For example, the OP might use a textbox instead of custom rendering, but the textbox might have specific behaviour with respect to the cursor, the arrow keys, the tab key, etc. which will "ruin" the illusion that the user is using a unix shell. ...
    (comp.lang.java.help)
  • Re: java webhosting..
    ... minimum) and MySQL, unix shell ... I pay approx $20/mo now for dedicated Tomcat, MySQL, unix shell.. ... check out my signature links to see what I'm doing on their Java ...
    (comp.lang.java.help)
  • Re: jtable and the tab key
    ... > Now i run the above program and start pressing the tab key. ... I use Java 1.5 - maybe you run an older version of your program for any ... reason. ...
    (comp.lang.java.gui)
  • Java code that execute Unix shell scripts
    ... a URL but it execute a Unix shell script,HTML can't do this but Java ... Thanks alot for trying to help. ...
    (comp.lang.java.programmer)