Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > SecureCRT on the Mac

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-16-2020, 06:22 AM
kamal kamal is offline
Registered User
 
Join Date: Mar 2015
Posts: 9
MAC Copy/Paste issue with Tab Character

Hi,

While copying a python script from one terminal & pasting it to another, I noticed some issues as script was not working. I realized that copying is converting all TABs into SPACEs.

Is there a way to copy TAB as is in Securecrt for Mac?

Version 8.7.2 (build 2214)

Catalina 10.15.5
Reply With Quote
  #2  
Old 06-16-2020, 11:35 AM
cboyack cboyack is offline
VanDyke Technical Support
 
Join Date: Apr 2020
Location: Albuquerque, NM
Posts: 59
Quote:
Originally Posted by kamal View Post
Is there a way to copy TAB as is in Securecrt for Mac?
SecureCRT is a terminal emulator, and each TAB it displays on the screen is really only a set of white spaces, whether the space was originally encoded as a TAB or not.

SecureCRT currently has no built-in tool to convert white spaces to TAB characters when copying text.

I've added a feature request on your behalf so that the product director may be able to evaluate it for potential inclusion in some future release. I don't yet have any ETA for when or even if this might ever become available, but if it does we'll let you know.

In the meantime, here is a python script, ConvertSpacesToTabsOnCopy.py.txt, that should be able to perform the functionality you desire.

If you map the script to a button on your button bar, simply highlight the text/script you wish to copy/convert, run the conversion script by pressing the button you just created, and then paste the resulting converted text where you wish.
Attached Files
File Type: txt ConvertSpacesToTabsOnCopy.py.txt (1.9 KB, 154 views)
__________________
Thanks,
--Cameron

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by jdev; 06-16-2020 at 11:43 AM.
Reply With Quote
Reply

Tags
copy , mac , paste


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 08:32 AM.