[As-users] aterm - copy and paste

Kacper Kornet (kornet@camk.edu.pl)
Thu, 25 Oct 2007 18:23:00 +0200

Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline


I have problem with copy and paste of high-ascii characters in
aterm-1.0.1. The characters are omitted when I copy from one aterm to
the other. When I copy to/from xterm everything is correct. Also copying
in the range of the same aterm works well.

I have found a solution which works for me (patch enclosed), but as I
know nearly nothing about xlib, I am not sure about its correctness.

With best wishes,
  Kacper Kornet

Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: attachment; filename="aterm-copypaste.patch"

--- src/screen.c.orig	2006-03-30 00:32:07.000000000 +0200
+++ src/screen.c	2007-10-25 05:27:46.000000000 +0200
@@ -2883,7 +2883,7 @@
         selection.type = 1;
 		/* "fix" for the high-ascii pasting? : */
 		/* may need to try all three : aterm_XA_UTF8_STRING, _XA_COMPAUND_TEXT and XA_STRING in that order */
-		XConvertSelection(Xdisplay, XA_PRIMARY, XA_STRING, aterm_XA_VT_SELECTION, TermWin.vt,tm);
+		XConvertSelection(Xdisplay, XA_PRIMARY, _XA_COMPAUND_TEXT, aterm_XA_VT_SELECTION, TermWin.vt,tm);
 /*	XConvertSelection(Xdisplay, XA_PRIMARY, _XA_COMPAUND_TEXT, prop, TermWin.vt,tm); */

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

As-users mailing list