mate-desktop / mate-terminal

The MATE Terminal Emulator
http://www.mate-desktop.org
GNU General Public License v3.0
135 stars 73 forks source link

Feature Request: Warning when pasting terminal commands (like XFCE Terminal) #409

Open MintMain21 opened 2 years ago

MintMain21 commented 2 years ago

I recently migrated to MATE from XFCE, and I quickly found myself installing the XFCE Terminal in MATE for one simple reason. The XFCE Terminal (in Linix Mint anyway) gives a warning when people paste in text featuring enter keypresses, as every terminal, by nature, interprets this as a instant command.

Seeing as both XFCE and MATE are aimed at a similar range of users (noobs and experts alike), I think this feature should be an option in the MATE terminal as well.

And for the record, this warning can also be disabled in XFCE Terminal.

cwendling commented 2 years ago

Recent versions of MATE-Terminal (or libVTE probably?) insert pasted newlines as literal newlines rather than submitting the command. Basically, now a paste won't run the command, only pressing Enter manually will. It might be nice to have an optional warning nonetheless, but I think the security concerns are pretty much lifted, and it also helps with hidden text (e.g. from malicious webpages), where a mere warning would not (unless it would feature the actual text to be pasted).