From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: X selection access in xterm (OSC 52) Date: Thu, 09 Apr 2015 18:47:09 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2b3484596cd05134f1381 X-Trace: ger.gmane.org 1428605246 10595 80.91.229.3 (9 Apr 2015 18:47:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2015 18:47:26 +0000 (UTC) Cc: Olaf Rogalsky , Emacs developers , Yuri Khan To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 09 20:47:25 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YgHU4-0000Gu-VH for ged-emacs-devel@m.gmane.org; Thu, 09 Apr 2015 20:47:25 +0200 Original-Received: from localhost ([::1]:36105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgHU4-0005QB-Gv for ged-emacs-devel@m.gmane.org; Thu, 09 Apr 2015 14:47:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgHTs-0005Q3-BX for emacs-devel@gnu.org; Thu, 09 Apr 2015 14:47:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgHTr-0000JG-5y for emacs-devel@gnu.org; Thu, 09 Apr 2015 14:47:12 -0400 Original-Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:34992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgHTq-0000JA-Rd for emacs-devel@gnu.org; Thu, 09 Apr 2015 14:47:11 -0400 Original-Received: by widdi4 with SMTP id di4so103001285wid.0 for ; Thu, 09 Apr 2015 11:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=lR0qi17N10DCPt0QGezsw/lbGqpsY719Ft6jHe2T1ug=; b=lAdxjEJigN7ovSX9jzEEChB/xstqNF0XMLjJP0xk8cvyZpn9mUhh6q+6mitXA/a0O3 S3C9f535WOGI9qiHrBvkwwesHnbBo77UPZGq3QZ9yRUm/ghwKqn0fHLc3TKMSDKlO1lL qchQqXYvvtp3+Z5JspHzycudfCZhz1JoCRqgSHc2ml5Ov7dDPvT/1Vig2hKlc2MW1aPo 5+3fBqI+HsvrcuvEoB7T8UU2JzE5eFDifzSxYuP7w7JsM105FFYJytPW8e37j82U/OZH 19pe4kSIEn9GMpt0mATNVudPmzGXjxrxslDWYrnvRuctpQ5HShFBJ3sOALw2EICwMxjI dhBw== X-Received: by 10.180.10.234 with SMTP id l10mr8743079wib.27.1428605230223; Thu, 09 Apr 2015 11:47:10 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185229 Archived-At: --001a11c2b3484596cd05134f1381 Content-Type: text/plain; charset=UTF-8 I took a second look at HTerm, and found that its FAQ ( http://git.chromium.org/gitweb/?p=chromiumos/platform/assets.git;a=blob;f=chromeapps/nassh/doc/faq.txt) states: "Clipboard read is not implemented. Reading is a security hole you probably didn't want anyway." Since I can't test the get-selection function and it's considered a security hole, I'm afraid I can't implement it. This only affects get-selection, not set-selection. Philipp Stephani schrieb am Do., 9. Apr. 2015 um 17:48 Uhr: > Stefan Monnier schrieb am Do., 9. Apr. 2015 um > 04:10 Uhr: > >> > OK, here's another patch. I've done some lightweight testing, it works >> in >> > hterm with or without screen. >> >> Thanks, it looks sound. Have you had a chance to look at Olaf's code? >> >> >> > Yes, I took a look and I'll work on integrating the paste functionality. > Since cut and paste are mostly independent of each other, maybe you could > already integrate the cut patch? > --001a11c2b3484596cd05134f1381 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I took a second look at HTerm, and found that its FAQ (http://git.chromium.org/gitweb/?= p=3Dchromiumos/platform/assets.git;a=3Dblob;f=3Dchromeapps/nassh/doc/faq.tx= t) states:

"Clipboard read is not implemented.=C2=A0 Readin= g is a security hole you probably=C2=A0didn't want anyway."

<= span style=3D"line-height:1.5;font-size:13.1999998092651px">Since I can'= ;t test the get-selection function and it's considered a security hole,= I'm afraid I can't implement it.
This only affects get-selectio= n, not set-selection.

Phil= ipp Stephani <p.stephani2@gmail= .com> schrieb am Do., 9. Apr. 2015 um 17:48=C2=A0Uhr:
Stefan Monn= ier <monni= er@iro.umontreal.ca> schrieb am Do., 9. Apr. 2015 um 04:10=C2=A0Uhr:=
> OK, here's another patch.=C2=A0= I've done some lightweight testing, it works in
> hterm with or without screen.

Thanks, it looks sound.=C2=A0 Have you had a chance to look at Olaf's c= ode?



Yes, I took a look and I'll work on integrating the p= aste functionality.
Since cut and paste are mostly independent of= each other, maybe you could already integrate the cut patch?
--001a11c2b3484596cd05134f1381--