X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <d56ea78b0710200238j553054d6h1379934169614119@mail.gmail.com>
Date: Sat, 20 Oct 2007 13:38:52 +0400
From: "Ma Dincht" <madincht@gmail.com>
To: cygwin@cygwin.com
Subject: Re: rxvt, cmd programs and cursor keys
In-Reply-To: <d56ea78b0710190433t176e9284vef56428f1dc8fce1@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <d56ea78b0710190433t176e9284vef56428f1dc8fce1@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> I am running rxvt (native, non-X) and everything I need works fine
> except of one thing.
> Time to time I need to run cmd programs, like oracle's sqlplus or even
> cmd itself.
>
> They work fine except of the up/down arrow keys, which should cycle
> through command history in those programs. However, if they are
> started under rxvt, the arrow keys are not passed correctly to these
> programs, instead rxvt moves the cursor up or down.

I have actually found an acceptable workaround to have command history
working in cmd programs started from rxvt.

I've set up aliases to start these programs via rlwrap, for example:

    alias cmd='rlwrap cmd'
    alias sqlplus='rlwrap sqlplus'

and so on. This works perfectly for sqlplus, cmd, and a bunch of our
inhouse cmd programs (which I can't recompile under cygwin because
they link against proprietary libraries compiled by MSVC).

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

