VanDyke Software Forums

VanDyke Software Forums (
-   General (
-   -   Display tab number on tab (

gchristiansenfm 11-15-2016 01:09 PM

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.

jdev 11-15-2016 04:03 PM

2 Attachment(s)
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. (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


petrus 11-25-2019 07:39 AM

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"

bgagnon 11-25-2019 08:14 AM

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.

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