From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from feline.systems ([99.23.220.214]) by ur; Tue Feb 23 15:57:36 EST 2016 Date: Tue, 23 Feb 2016 15:57:32 -0500 From: BurnZeZ@feline.systems To: 9front@9front.org Subject: Re: [9front] drawterm qid re-use Message-ID: <962e05e927310a40eeafe28e489080f2@meiling.znet> In-Reply-To: <6e7f1959f88a7b0f4e19d8987edb70b6@felloff.net> References: <6e7f1959f88a7b0f4e19d8987edb70b6@felloff.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-adsirinzaurogsmzjanpprgpcu" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: extended database-aware method standard This is a multi-part message in MIME format. --upas-adsirinzaurogsmzjanpprgpcu Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit On Tue Feb 23 09:40:02 EST 2016, cinap_lenrek@felloff.net wrote: > > After disregarding the comment at drawterm/gui-x11/x11.c:/polling/ > > and changing XA_STRING to utf8string in the following couple lines > > to allow for utf8 clipboard shennanigans, I find this iteration of > > drawterm quite usable. > > can you be more specific? a diff maybe? i dont have linux at hand. Here you go. --upas-adsirinzaurogsmzjanpprgpcu Content-Disposition: attachment; filename=x11.diff Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit diff -r 5bd785ede354 gui-x11/x11.c --- a/gui-x11/x11.c Tue Feb 23 01:12:28 2016 +0100 +++ b/gui-x11/x11.c Tue Feb 23 15:54:42 2016 -0500 @@ -1496,8 +1496,8 @@ * but that would add to the polling. */ prop = 1; - XChangeProperty(xd, xdrawable, prop, XA_STRING, 8, PropModeReplace, (uchar*)"", 0); - XConvertSelection(xd, clipboard, XA_STRING, prop, xdrawable, CurrentTime); + XChangeProperty(xd, xdrawable, prop, utf8string, 8, PropModeReplace, (uchar*)"", 0); + XConvertSelection(xd, clipboard, utf8string, prop, xdrawable, CurrentTime); XFlush(xd); lastlen = 0; for(i=0; i<10 || (lastlen!=0 && i<30); i++){ --upas-adsirinzaurogsmzjanpprgpcu--