How to copy tab-delimited text to clipboard from w

2019-04-29 20:16发布

I am trying to copy and paste a few lines of a file from within a UNIX environment into a webpage. I want to preserve the original formatting with disrupting the tabs. However, when I select a block of text and copy and paste it into a webpage, all of the tabs have been converted to various length runs of spaces.

Can someone please tell me what I can do to preserve the original tabs? It needs to be as simple as possible so that newbie users can do the same!

Thanks

1条回答
Lonely孤独者°
2楼-- · 2019-04-29 20:46

Based on your comment that the text that you're copying is missing the tabs, I suspect that the ptty you're using has converted them for you. I suspect if you run "stty tabs", you may get the behavior you're looking for (by disabling tab expansion in the ptty).

查看更多
登录 后发表回答