delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/16/11:34:18

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: <5.2.0.9.2.20030216082321.01da49a8@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Sun, 16 Feb 2003 08:34:38 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: RE: Bash shell
In-Reply-To: <NGBBLLIAMFLGJEOAJCCEIEDHCKAA.garbage_collector@telia.com>
References: <3E4D1F89 DOT 2080005 AT rfk DOT com>
Mime-Version: 1.0

Hannu,

At 08:05 2003-02-16, Hannu E K Nevalainen (garbage mail) wrote:

> >> I use the bash shell a LOT and was wondering how do I get it 
> so  that I can
> >> copy and paste something from a windows window (such as an IP 
> address) into
> >> the bash shell window. For example I want to use the whois 
> functionality of
> >> the bash shell for an IP I have in a windows window. I cannot seem to copy
> >> and paste anything.
> >>
> >> I know that for the Xfree you can use the -clipboard option, but I rarely
> >> use the X system...mostly just the bash shell.
>
>Larry Hall:
> > Welcome!  New users are encouraged to make use of the available resources
> > to see if their question or issue is covered before querying the list.
> > That includes the FAQ, User's Guide, and email list archives.  In
> > this case,
> > you wouldn't have needed to go beyond the FAQ.  There's a nice entry about
> > this in there.  See:
> >
> >    4.2.24 How can I copy and paste into Cygwin console windows?
> >    <http://cygwin.com/faq/faq_4.html#SEC54>
>
>  Pasting things from the above FAQ section into "pico ~/.inputrc"
>
>"2~5~Be2~5~4~24~BC": paste-from-clipboard
>
>  Nice pasting... eh..?

I cannot reproduce that result when copying from any of these browsers:

Mozilla 1.2.1:
     "\e[2~": paste-from-clipboard

IE 6:
     "\e[2~": paste-from-clipboard

Netscape 4.79:
     "\e[2~": paste-from-clipboard

Opera 7:
     "\e[2~": paste-from-clipboard


Pasting into the console (right-click) and RXVT (middle-click) produced 
the same results as pasting here (Eudora w/ CTRL-V). I don't know Pico, 
but I gave it a try (running in a Cygwin console window) after copying 
from Mozilla. A right-mouse paste there also had the expected effect.

Mozilla and IE copied styles, which I removed here. Perhaps that had 
something to do with it.

I don't know what's up here, but I don't think there's anything wrong 
with the FAQ.


>Well, after adding (for "insert-key"-paste)
>     "\e]2~": paste-from-clipboard
>to ~/.inputrc and restarting all of cygwin: It doesn't work.

Here you have the wrong orientation of the square bracket character.


>I also have
>     DEL: forward-backward-delete-char
>which does work in pico (internal handling?), but not in Bash...
>(most things set as per default)
>
>  It is nice to have a FAQ, but when things described there doesn't work...
>
>FINALLY:
>  "\M-[2~": paste-from-clipboard # insert key
>OTOH seems to work nicely (suggesttion by Randall Schulz, 2003-02-14)
>this also remedies the first problem.

The "M-" is "meta-" and is just another way of notating an ESCAPE prefix.


>  Who is the FAQ maintainer?
>
>/Hannu E K Nevalainen, Mariefred, Sweden


Randall Schulz 


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