delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/02/08:57:06

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Cc: cygwin AT cygwin DOT com
Message-Id: <A45AE599-B6AC-41DA-A230-CD3C1C7A4F67@NSG-GmbH.de>
From: Ralf Gans <Ralf DOT Gans AT NSG-GmbH DOT de>
To: xerces8 <xerces8 AT butn DOT net>
In-Reply-To: <WorldClient-F200902021105.AA05540020@butn.net>
Mime-Version: 1.0 (Apple Message framework v930.3)
Subject: Re: Copy converts tabs to spaces ?
Date: Mon, 2 Feb 2009 14:56:48 +0100
References: <WorldClient-F200902021105 DOT AA05540020 AT butn DOT net>
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

Hi,

copy an paste from window to window takes what's printed,
not what you have written.

So, if the terminal prints spaces to represent the tabs,
as a terminal usualy does, you CAN only copy spaces.

All else is an exception, U*X ist NOT wysiwyg!

Regards,

Ralf

On 02.02.2009, at 11:05, xerces8 wrote:

> Hi!
>
> I noticed that when copying text from a the Cygwin Bash window and  
> then pasting it somewhere (like
> WordPad), tabulator characters are converted to spaces.
>
> The same happens with RXVT too.
>
> Details:
> - print the content of some text file that has tabs (like a C  
> program source) : cat foo.c
> - select and copy the text with the mouse
> - paste (ctrl-V) into WordPad
>
> The text in Wordpad has no more tabs.
>
> Is there a way around this ?
>
> Regards,
> David
>
>
>
> --
> 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/
>
>


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