The code for my page is roughly as follows
<body style="margin-left:20px;">
<table><tbody>
<tr><td>456789</td><td>123</td><td>123</td></tr>
<tr><td>123</td><td>123</td><td>123</td></tr>
<tr><td>123</td><td>123</td><td>123</td></tr>
</tbody></table>
</body>
I often copy part of the prefix of the first row and column from it. In this case it’s “4567”.
And then paste into my terminal(zsh or bash shell) and run a command that takes the prefix as a parameter.
As you know, the new line is treated as a new command.
I move my mouse to the left margin of the 4, hold down the left button, and drag to stop at the 7 and press ctrl+C.
But what I copy comes out with a carriage return at the top.
I will get "n4567"
exactly.
How can I get "4567"
?
This operation can be reproduced in website <textarea>
, not limited to the terminal.
My operating system is ubuntu.