This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]