This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Java Command History in rxvt
- From: "Keith Starsmeare" <keith_starsmeare at yahoo dot co dot uk>
- To: <cygwin at cygwin dot com>
- Date: Tue, 16 Jul 2002 15:04:19 +0100
- Subject: Java Command History in rxvt
When I run java in a DOS box I can use the cursor keys to access previous
commands that I've entered. Is there a way to get this to work in a Cygwin
rxvt window?.
Here's an example java program if you want to try it:
CmdLine.java :
import java.io.*;
public class CmdLine {
InputStreamReader reader;
StreamTokenizer tokenStream;
public CmdLine() {
reader = new InputStreamReader(System.in);
tokenStream = new StreamTokenizer(new BufferedReader(reader));
try {
while (tokenStream.nextToken() != StreamTokenizer.TT_EOF);
} catch (IOException ioe) {}
}
public static void main(String[] args) {
CmdLine cmd = new CmdLine();
}
}
Keith
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/