9front - general discussion about 9front
 help / color / mirror / Atom feed
From: BurnZeZ@feline.systems
To: 9front@9front.org
Subject: Re: [9front] drawterm qid re-use
Date: Tue, 23 Feb 2016 15:57:32 -0500	[thread overview]
Message-ID: <962e05e927310a40eeafe28e489080f2@meiling.znet> (raw)
In-Reply-To: <6e7f1959f88a7b0f4e19d8987edb70b6@felloff.net>

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

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.

[-- Attachment #2: x11.diff --]
[-- Type: text/plain, Size: 620 bytes --]

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++){

  reply	other threads:[~2016-02-23 20:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23  7:45 BurnZeZ
2016-02-23  7:46 ` [9front] " cinap_lenrek
2016-02-23  9:30   ` BurnZeZ
2016-02-23 14:39     ` cinap_lenrek
2016-02-23 20:57       ` BurnZeZ [this message]
2016-02-23 22:47         ` cinap_lenrek
2016-02-24 10:30         ` cinap_lenrek
2016-02-24 18:30           ` BurnZeZ
2016-02-24 18:38             ` sl
2016-02-23 13:27   ` kokamoto
2016-02-23 14:02     ` hiro
2016-02-23 14:31     ` cinap_lenrek
2016-02-24  0:22       ` kokamoto
2016-02-23 14:35     ` sl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=962e05e927310a40eeafe28e489080f2@meiling.znet \
    --to=burnzez@feline.systems \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).