Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > General


Thread Tools Display Modes
Old 11-15-2016, 01:09 PM
gchristiansenfm gchristiansenfm is offline
Registered User
Join Date: Nov 2016
Posts: 1
Display tab number on tab

How can we get the tab number displayed on the tab along with the name? I've used other tools (on mac) that dynamically put the tabl number along with the title. This is handy when you have many tabs open and want to use the keyboard shortcut (Alt+#) to switch between tabs.
Reply With Quote
Old 11-15-2016, 04:03 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,099
The ability for SecureCRT to natively name tabs with an index isn't currently a feature you can "turn on". There is now a feature request in place, and we'll post to this forum thread if a version of SecureCRT were ever to become available with this functionality as a native feature.

In the mean time, there is a script workaround that can be used to accomplish tab index numeral-naming.

As there might be forum community members who desire this functionality in Python as well as VBScript, examples of both script ideas are provided here.
RenameTabsUponConnect.py.txt (Python)
RenameTabsUponConnect.vbs.txt (VBscript)
The script can be used in any of the following ways:
  • Set it up as your "Logon Script" (see Logon Actions category of your Session Options -- apply to all your sessions by modifying the Default session),
  • Map a button on SecureCRT's Button Bar to launch this script whenever you would desire to "freshen" the index for all tabs with one quick run, or
  • Launch it manually with the Run menu item found in SecureCRT's main Script pull-down menu

Attached Files
File Type: txt RenameTabsUponConnect.py.txt (918 Bytes, 1953 views)
File Type: txt RenameTabsUponConnect.vbs.txt (1.1 KB, 1931 views)
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
Old 11-25-2019, 07:39 AM
petrus petrus is offline
Registered User
Join Date: Nov 2019
Posts: 1
Resurrecting an old thread, on the matter of renaming the tab upon connect.

As OP I like to have meaningful names in my tabs / windows.

I use bastion hosts, so the script method can't work here, all tabs would have the bastion session name, so on the bastion host (unix) I used the following .ssh/config:

Host *
    PermitLocalCommand yes
    LocalCommand echo -ne "\033]0;%n\007"
Reply With Quote
Old 11-25-2019, 08:14 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,636
Hi all,

As a note, we recommend, where possible (jumphost must support port forwarding), that everyone use Dependent Session for jumphost/bastion scenarios. This does allow the tab to be identified as the target host and not the jumphost/bastion server.

See the YouTube channel video on Dependent Session functionality here.

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote

display , number , tab

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