Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > SecureCRT on the Mac


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


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
Old 06-16-2020, 10:35 AM
cboyack cboyack is offline
VanDyke Technical Support
Join Date: Apr 2020
Location: Albuquerque, NM
Posts: 132
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, 2291 views)

VanDyke Software
Technical Support
(505) 332-5730

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

copy , mac , paste

Thread Tools
Display Modes

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 05:56 AM.