delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/16/10:04:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <000701c22cd1$af667670$b72e3c3e@stirling.gcplc.com>
From: "Keith Starsmeare" <keith_starsmeare AT yahoo DOT co DOT uk>
To: <cygwin AT cygwin DOT com>
Subject: Java Command History in rxvt
Date: Tue, 16 Jul 2002 15:04:19 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019