Sorry, it seems Reportbug has rewrapped the report :/

More readable version:
>From time to time it happens that I paste some random content into the 
terminal. It happens because of various reasons. Sometimes I select 
something in a GUI application and forget about it, sometimes I close 
a window and the clipboard points to something random.

Sometimes it ends up with me executing something harmful.

I've created three patches. Every one of them uses a bit different 
method to cope with the problem. There are three because of a discussion 
I had with the author, but lost contact with him, so I file this here.  
I personally hope the "New handler solution" will be chosen.

So these are the patches, every one gives an option to allow only one 
line pastes.

Option set by a resource or by popup menu, filtering in the C++ code:
rxvt-unicode-9.07-pasteOneLine.cpp.filter.diff

Extension filtering every input in the on_tt_write handler (overkill):
rxvt-unicode-9.07-pasteOneLine.tt-write.handler.diff

New handler usable in a Perl extension (extension included):
rxvt-unicode-9.07-pasteOneLine.paste.handler.diff


-- 
Marcin Szewczyk                       http://wodny.org
mailto:marcin.szewc...@wodny.borg  <- remove b / usuĊ„ b
xmpp:wo...@ubuntu.pl                  xmpp:wo...@jabster.pl



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to