[Konsole-devel] [Bug 89299] prevent paste of newline characters

Maarten ter Huurne maarten at treewalker.org
Sat Feb 5 18:34:39 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=89299         




------- Additional Comments From maarten treewalker org  2005-02-05 19:34 -------
Ah, I think you misunderstood my original report. What I mean is that in another application I select some text and then in Konsole I press the middle mouse button to paste. That will insert all characters from the selected text into the stdin of the process inside Konsole (typically, a shell).

This is what I wanted to do:
- select (by holding the left mouse button) the file name of the file I want to remove
- switch to Konsole running bash
- type "rm "
- paste using the middle mouse button
- line reads "rm file_that_should_be_deleted"
- I review that command and press Enter to confirm it

This is what happened instead:
- selection buffer contains a line from a ChangeLog file in Kate (for example "* Added some new features:\n- Feature #1\n- Feature #2")
- switch to Konsole running bash
- type "rm "
- paste using the middle mouse button
- line reads "rm * Added some new features:" and is immediately executed because the newline was pasted as well
- bash also tries to execute "- Feature #1", which fails
- after the bash prompt it says "- Feature #2" now
- I find out I pasted the wrong text only after rm has deleted all files in the current directory

What I would like is to have some way to review what is pasted before the newline is sent. If I would have seen "rm * Added some new features:" before it was executed, I would have had a chance to cancel it.



More information about the konsole-devel mailing list