delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/24/11:40:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_RX,TW_YG
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Does not work well: rlwrap + rxvt + cmd
Date: Wed, 24 Aug 2011 08:39:58 -0700
Lines: 56
Message-ID: <j3360e$6au$1@dough.gmane.org>
References: <1314198447 DOT 17029 DOT 140258133233741 AT webmail DOT messagingengine DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0
In-Reply-To: <1314198447.17029.140258133233741@webmail.messagingengine.com>
X-Stationery: 0.7.5
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 08/24/11 08:07, Ronald Fischer wrote:
> I would like to run cmd.exe within a rxvt terminal on Windows 7.
My question is why? Why do you want to run cmd.exe?
> Problem is that calling the cmd.exe command history does not work (it 
> seems that the cursor keys are not passed properly to cmd.exe).
>
> In one thread in this mailing list, it was recommended to wrap the 
> rxvt call by rlwrap:
>
> rlwrap rxvt -e cmd.exe
>
> However, this doesn't solve the problem.
>
> Any other suggestions?
My suggestion would be to abandon cmd.exe altogether. This is not some 
smug response or anything like that. Simply put, I have not found a 
single thing that I need to have cmd.exe around to do it. In fact the 
only time I go into cmd.exe is to proof to others "See it fails in 
straight cmd.exe too".

I also find the cmd shell and command language inferior in that there's 
nothing special or even convenient in cmd that can't be done even 
quicker and better in bash. Now that's a subjective opinion and can be 
considered smug but it's held with literally years of using Cygwin and 
Unix/Linux systems together. It's demonstrable that scripts you might 
develop for bash under Cygwin work equally as well if you simply move 
them onto say Linux, Solaris, HP-UX, FreeBSD, etc. (sans the obvious 
non-portable things you might do with Cygwin specific executables like 
cygpath as well as Windows pathnames or other assumptions. Suffice to 
say, however, that you can program in that portability). I know - I do 
it all the time.

Given the above I must question again - why do you want to run cmd.exe?
> Maybe any alternative to the standard Windows console? On Windows XP I 
> used the sourceforge-project Console2, but on Windows 7 it crashes so 
> often, that I am looking for a different solution.
>
> In particular, I like with rxvt (and with Console2) the ease of 
> copyiing and pasting text, in particular text spanning more than one 
> line. 
I used rxvt for a long time. I too enjoy the copy and paste semantics 
and the ability to resize the term and it just works correctly. 
Additionally rxvt pays attention to ~/.Xdefaults settings which is 
convenient. However I've since switched to mintty. You should check it out.

As the other guy said, I don't think that running cmd.exe will work with 
the arrows because cmd.exe is expecting access to the console in a 
"Windows way". That said, and if you're hellbent on using cmd.exe, I 
vaguely recall another terminal emulator program (not a Cygwin thing 
mind you) called, I believe just "Terminal" (Good luck googling that!) 
which (insert fuzzy memory here) I believe used a hidden cmd console 
window to allow the Windows program the proper console environment while 
translating that to the non-hidden Terminal window. That might work...
-- 
Andrew DeFaria <http://defaria.com>
It's not an optical illusion. It just looks like one.


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

- Raw text -


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