Hi
I noticed that, depending on the size of data I had
highlighted in another application, when the time came
to paste it in aterm it would either work or not. If
the data size was small (approximately 4000 bytes) then
it worked fine. However if it was large, the only
thing that would get pasted is 1 character of garbage.
I tracked the problem down to selection_paste in
screen.c. Basically, it always assumed that the data
received is valid pasted data, while the ICCM
specificaion (see
http://tronche.com/gui/x/icccm/sec-2.html#s-2.7.2\)
states that if the data is too large, an INCR property
(not the real data) will be returned.
Attached is a patch that implements INCR support in
aterm, allowing the user to paste large strings.
Patches aterm-0.4.2 to enable pasting large data