This is a patch I took from the Debian aterm package, which fixes a problem where text from aterm will not paste into some QT applications such as Psi or Licq. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 18050 [details, diff] patch to fix pasting
Created attachment 18051 [details, diff] patch to fix pasting
sorry, didn't mean to attach it twice :)
Please also have a look at bug #30958.
This builds well both with USE=cjk and USE=-cjk. I've committed it as aterm-0.4.2-r6 and ~arch masked it in case any issues crop up. Thanks!