Forum

Copy/Pasting tabs t...
 
Notifications
Clear all

Copy/Pasting tabs turning to spaces

0 Posts
2 Users
0 Reactions
151 Views
(@jyagmin)
New Member
Joined: 15 years ago
Posts: 2
Topic starter  

I'm having an issue that may or may not be Absolute Telnet related. If I edit a text file with Nano on Linux, I try selecting text with the mouse and copying it. When I paste the text, the tabs are all converted to spaces, which is pretty annoying.

I tried pasting the text to Notepad and it's the same issue. Is there an issue recognizing the /t character, or is there a setting I can adjust? Might this be an issue with Nano instead?

Thanks!


   
ReplyQuote
(@jyagmin)
New Member
Joined: 15 years ago
Posts: 2
Topic starter  

I've read up a bit about this and it seems to be an issue with xterm and the fact that copy/pasting only grabs what's visible on screen. I know this is a bit outside the purpose this forum, but if anyone has a solution for doing this (different protocol, different text editor, some config somewhere?), I'd love to hear it!


   
ReplyQuote
(@bpence)
Member Admin
Joined: 9 months ago
Posts: 1374
 

Unfortunately, this is a common thing across any kind of terminal emulation. How things are presented on the screen may not necessarily be the way they are represented in the file. Common, this happens with tabs, but it can also happen with control characters (carriage return shown as ^M for example).

To preserve these special characters, you should use nano's own mechanisms for cutting/copying/pasting.

Brian


   
ReplyQuote
Share: