> On my native Mac OS X drawterm, when I snarf a <CR>, subsequent pastes
> seem to insert a newline.
> 
> On osx-x11 drawterm, <CR> gets pasted.

Which one do you think is the bug?  They both sound correct to me.

I suspect that since OS X uses plain \r as the
end of line sequence, if you snarf multiple lines
in some native application then you'll get something
like hello\rworld.  Pasting that into Plan 9 *should*
produce hello\nworld, since \n is the Plan 9
end of line sequence.

In X11, it is assumed (perhaps incorrectly) that the
X11 server is already doing that translation.

Similarly, in Windows, the snarf buffer rewrites \r\n
into plain \n.

In all cases the goal is to make it so that if you copy
multiple lines out of a native application and paste
them into Plan 9, you get multiple lines separated
only by \n.  It is definitely possible that the code is
not managing to do this, but your report doesn't
make that clear.

Russ

Reply via email to