id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3645	breaks paste in vte-based terminals	onlyjob		"As reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824359

mc-4.8.17 fails to clean up the terminal
settings when exiting.  If the selection is ""foo"", what's getting pasted is:
00~foo01~

The actual bytes are:
{{{
00000000  1b 5b 32 30 30 7e 66 6f  6f 1b 5b 32 30 31 7e 0a  |.[200~foo.[201~.|
}}}

There's no regression in xterm or rxvt, there is in xfce4-terminal and
lxterminal (and presumably anything else vte based).

Reinstalling mc=3:4.8.15-2 (testing) makes paste work again.

This is so called ""bracketed paste mode"", set by ""\e[?2004h"" which new mc
enables at start.  To clear it, please emit ""\e[?2004l"".
"	defect	closed	major		mc-tty	4.8.17	duplicate		egmont			no branch	
