delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/25/08:36:33

X-Spam-Check-By: sourceware.org
Date: Fri, 25 Aug 2006 08:36:14 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Owen Rees <owen DOT rees AT hp DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: copying and pasting in the terminal window?
In-Reply-To: <735E63F0E5F1AD8E2C96CE03@rees-o-3.labs.hpl.hp.com>
Message-ID: <Pine.GSO.4.63.0608250833001.8564@access1.cims.nyu.edu>
References: <874pw2t9cf DOT fsf AT offby1 DOT atm01 DOT sea DOT blarg DOT net> <Pine DOT GSO DOT 4 DOT 63 DOT 0608241241110 DOT 3875 AT access1 DOT cims DOT nyu DOT edu> <87zmdurq2d DOT fsf AT offby1 DOT atm01 DOT sea DOT blarg DOT net> <735E63F0E5F1AD8E2C96CE03 AT rees-o-3 DOT labs DOT hpl DOT hp DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Fri, 25 Aug 2006, Owen Rees wrote:

> --On 24 August 2006 10:39 -0700 Eric Hanchrow wrote:
>
> >     Igor> FWIW, my main gripe with Console is that it doesn't
> >     Igor> understand line wrapping, so cutting and pasting a line that
> >     Igor> wraps multiple times results in multiple lines.
> >
> > Yup.  And as far as I know, there's no way to tell the console "please
> > save the accumulated scrollback into a file".  But then I don't think
> > rxvt can do that either :-)
>
> You can select all the available scrolled text with both Console and
> rxvt (Console scrolls when you drag off the top/bottom and extends the
> selection, rxvt extends the selection with a right mouse click so you
> can select, scroll, right click).

In Console, you can extend the selection with Shift-left click.

> Once you have copied it all, "cat >somefile" then paste, CR ^D will get
> it into a file. Perhaps not quite as simple as having a 'save' option,
> but not too hard to do.

Even simpler: "cat /dev/clipboard > somefile" (no need to paste).  This
works immediately with Console and rxvt in W11 mode, but may not work in X
until you switch to and from a Windows app (because X has to copy the X
selection to clipboard).

> If you are using rxvt, long lines that wrapped on display will be long
> lines in the file, With Console, there will be line breaks wherever it
> wrapped.

That's exactly the gripe I mentioned above.

> In the context of copying and pasting in a window, I find rxvt far
> superior to Console because of the way it handles long lines (as well
> copying/pasting the way X does without requiring that X be running).

Right.  It also keeps the colors better, whereas Console sometimes fails
to redraw correctly under heavy CPU loads.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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