X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=JAdodj317HtOoBxW
	qgVn6/SWrvNdaSev91AEiWXaq5H7M1KZ4wFGG8bHHDozOKBKWRyJzDN9k4Oq/Rzs
	INx6GkN6bqoOpFQO1+BszOK2s7ypqzcYMfkVE4EcgyPmCMfw8KXrqGPL/yq/KtIX
	RIpc9o6s+sRJCkrnJ1eCT5SYS/Q=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=aeZ49Ps5bXL+87UYHEWW2+
	O2L9w=; b=JIe5SlAC/uFfDhudPzxdZ2nukfx02bfoehvxWcTNfhYc3atDBsFOLp
	RQioZeWPt7eZl9rcwnb/8mhhAK5yZZVBC3zVwd2cP0ZOhVampE+QaBrpObvB9LZl
	EBZ3a9t8XIEN4uV2kmu7bPOOOgqji/YHxIfSr6Go2+KYo/wootHCw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=intend, pasted, disturbing, unformatted
X-HELO: mout.kundenserver.de
Subject: Re: [ANNOUNCEMENT] Updated: mintty 2.9.4
To: cygwin@cygwin.com
References: <announce.c595f006-ca8c-1a8a-25ac-8c9a6564ad20@towo.net> <1878070607.20181113005032@yandex.ru> <559c8b3d-af18-626a-c2bb-14d546d288ac@towo.net> <961991501.20181113183206@yandex.ru> <7b5ffea1-c519-0ff2-9062-6cae3afcddd3@towo.net> <456656735.20181114020312@yandex.ru>
From: Thomas Wolff <towo@towo.net>
Message-ID: <92bfee43-7c32-e6d7-b966-621ce52bb4c7@towo.net>
Date: Wed, 14 Nov 2018 00:16:45 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0
MIME-Version: 1.0
In-Reply-To: <456656735.20181114020312@yandex.ru>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes


Am 14.11.2018 um 00:03 schrieb Andrey Repin:
> Greetings, Thomas Wolff!
>
>>>>>> I have uploaded mintty 2.9.4 with the following changes:
>>>>>> Terminal features
>>>>>>       * Copy as HTML (#811).
>>>>> I should agree with Achim. This feature is utterly broken.
>>>>> Copied fragments are inserted as HTML TABLES(of all the things!) with no formatting whatsoever.
>>>> OK, it shall be made configurable. But please describe in which ways
>>>> workflows are broken and how / in which application HTML tables (HTML source?) would appear.
>>> When I copy a text string, I fully expect it to remain a string. Formatted,
>>> colored, but still string.
>> I'd interpret this to mean that the feature is welcome but its details
>> are not?
>> If you want coloured text, it needs to remain HTML format (or RTF) as
>> plain text is not coloured.
> Yes.
>
>>>> Of course plain text clipboard format is still supplied (multiple
>>>> formats can be copied to the Windows clipboard at the same time,
>>>> otherwise I wouldn't have enabled this by default), and the assumption
>>>> was that an application pasting plain text from the Windows clipboard
>>>> would still retrieve that.
>>> Plain text is pasted as text, that's not an issue.
>>> But pasting into a text processor is broken.
>>> When I copy a text from PuTTY, it is pasted as colored/formatted, but text.
>> Which means putty also copies something formatted, either HTML or RTF,
>> otherwise it wouldn't be coloured.
> PuTTY uses RTF in addition to plain text, if "copy as rich text" is enabled.
>
>>> When I copy same text from MinTTY, it is pasted as uncolored/unformatted table
>>> with a single cell.
>> Uncoloured? It's the purpose of this feature to copy attributes through
>> the clipboard and it works in all my tests.
>> Which application pastes it without colours?
> OpenOffice for one. I intend to check with MS Office, once I have access to
> one.
>
>> The table is another thing, I acknowledge this can be disturbing. The
>> purpose was an easy way to include an optional transparent image
>> background in the clipboard. I'll tweak the HTML output to do without it
>> by default, or maybe always if I can attach the image to a <div>.
> I think you're stretching yourself out of intended purpose of the feature.
Haha, yes. But once I started implementing the feature it was a 
challenge to make the appearance as close to the original as possible 
(with a much better result than xterm, actually), and it was fun to even 
include the background image (only in the HTML Screen Dump from the 
context menu, when nothing is selected). That's how the unwelcome 
<table> got in.

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

