I know that I can highlight text and its automatically copied, but is there a way to delete the text that you highlight? I am using nano.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you’re using PuTTY on Windows, here is the way the applications are stacked:
PuTTY talks to Windows, so it knows about your mouse. And it can do things like interact with the Windows clipboard. On the other hand, nano isn’t even running on your computer, it’s running on the remote computer. So it doesn’t know anything about your mouse or your Windows clipboard. It only knows about what it can talk to through a tty device (usually a pty, or “pseudo-terminal” device).
When you’re running nano locally (on a Unix desktop, in xterm or something similar), nano talks to xterm, and can get mouse information from the terminal (if mouse support is enabled in nano).
To get mouse support in nano, try using
nano -m, or put “set mouse” in your~/.nanorc. You may want to browse the nano documentation for more information. Additionally, you may need to doexport TERM=xtermor similar in your shell if PuTTY isn’t in your termcap file.With mouse support on, nano will use xterm-compatible terminal extensions to talk through SSH to PuTTY. Then you will be able to cut and paste (and delete text) in nano, but you won’t be able to cut and paste text with the Windows clipboard anymore. (If you want the old behavior back, you can hold down shift while you select. See the PuTTY documentation for details.)