However, if you use the terminal emulator's paste (Ctrl-Shift-V), since it is running on your local computer, it will access your system clipboard and send the paste event across ssh to micro on the server and everything will work. Since micro runs on the remote server, when copying and pasting it accesses the server's clipboard (in fact, I believe most servers do not even have system clipboards), so it is not possible to copy from your local computer and paste using Ctrl-V (micro's paste). However, when using micro over ssh, it is important. Generally it doesn't matter if you use the terminal's copy/paste or micro's copy/paste. If you press Ctrl-Shift-V (or whatever the keybinding is to paste using through the terminal emulator) then the terminal emulator accesses the system clipboard and sends the string of characters to micro as a "paste event." The same works for copy and paste but since a selection is required to copy, mouse support must be disabled in micro (atm this is not possible) to use the terminal emulator's copy so that a selection can be made using the terminal emulator's method of selection instead of selecting through micro (in that case, line numbers might become selected because the terminal emulator only knows about the characters being displayed). When you press Ctrl-V, the terminal sends this key event to micro and micro then interfaces with the system clipboard (if you have xclip or xsel installed - or a local clipboard otherwise) and pastes. Since micro runs inside the terminal, each program (the terminal emulator and micro) has its own handling of copy and paste. Not sure if it works on vim, since I've never used vim with mouse support. Perhaps will correct me on this.ĮDIT: For reference, right click -> copy works on anything that prints to standard output without taking over the screen. I don't know much about how terminals work, so I don't really know how big of a change it would take to make the right click -> copy work, but my uneducated guess would be that it's not feasible. My recommendation would be to use use Ctrl + C to copy, and Ctrl + V to paste. I've just installed Mate-terminal to test 's issue, and have found that the right click menu does open, with the copy option greyed out. I guess it detects that Micro is capturing mouse clicks, and decides to drop its own right click menu functionality. On Xfce4-terminal, the right click menu does not open when running Micro. Most terminals include a right click menu which include a copy function. I don't believe he's trying to just right click to copy, but is rather referring to the right click menu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |