Re: vte widget improvement idea



On Thu, Jun 11, 2015 at 06:55:13PM +0300, Martin Kunev wrote:
[...]
My idea is to add a setting (something like
vte_terminal_set_paste_escape()) that, when turned on, escapes the
dangerous characters (unquoted line feeds) from the clipboard text and then
pastes.
[...]
Any thoughts on this feature? Do you think this is a good idea? Any
suggestions?

To be honest, I think that's a terrible idea.

You're assuming that pasting something into a shell is always a bad
idea. It is if you did it by accident, but if you do it on purpose, it
isn't.

If I mail my customer to please paste these two commands from their mail
into a shell window, I don't want to have to tell them to switch off
this "protection" first.

If I have a web page with documentation which says that "to create a new
user, first run adduser <usxername>, and then run passwd <username>", I
don't want to have to tack on "but you can't paste that in the shell
window".

There are plenty of valid uses for pasting something into a terminal
window. Let's not throw the kid out with the bath water.

-- 
It is easy to love a country that is famous for chocolate and beer

  -- Barack Obama, speaking in Brussels, Belgium, 2014-03-26


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]