delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/19/16:48:02

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47191773.5A1EDDA4@dessent.net>
Date: Fri, 19 Oct 2007 13:45:39 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: rxvt, cmd programs and cursor keys
References: <d56ea78b0710190433t176e9284vef56428f1dc8fce1 AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Ma Dincht wrote:

> 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.
> 
> Is there a way to make rxvt pass cursor key pressings to the cmd
> programs without any procession by rxvt?

You will run into this any time you try to run a non-Cygwin program with
input connected to an emulated pty.  There's no workaround, that's just
the way rxvt (and most every other unix terminal, e.g. xterm) works.  In
fact the only case where you *won't* involve a pty is when you are using
a native Windows console and you don't have CYGWIN=tty; or if you use a
non-Cygwin terminal like putty or console2.

There are many past threads on this topic if you want more information. 
Here is a search to get you started:
<http://www.google.com/search?q=site%3Acygwin.com+inurl%3Aml+inurl%3Acygwin+rxvt+pty&num=100>

Brian

--
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/

- Raw text -


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