Wednesday, May 1, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1748  / 2 Years ago, sat, february 12, 2022, 12:26:09

I have been facing a situation at my gnome terminal, I use Ctrl+Insert to copy text and Shift+Insert to paste text in a terminal. The issue is whenever I paste using the shift+Insert the line is executed directly, I want to be able to paste only, and the line to be executed upon pressing Enter and not automatically.



can someone help me about this, is there a settings I can edit or something?


More From » command-line

 Answers
2

This is a common issue that I have experienced many times.



Actually it is not a bug in gnome terminal in fact the command is executed automatically only when you copy the whole line including the invisible return character(this is particularly common when you copy from webpages or PDF files)



At the moment the only ways that I found to avoid this issue are:




  • be careful when selecting the text and select the whole text without selecting the whole line.

  • copy the text from the webpage or PDF into gedit and afterward copy from gedit to the terminal



For the same reason when you copy a multiline code all the lines except the last will always be executed.



If someone know a better solution to this issue I would like to know too


[#3988] Saturday, February 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lasagnerhead

Total Points: 487
Total Questions: 105
Total Answers: 122

Location: French Southern and Antarctic Lands
Member since Sun, May 3, 2020
4 Years ago
;