VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   General (https://forums.vandyke.com/forumdisplay.php?f=11)
-   -   List of all open sessions (https://forums.vandyke.com/showthread.php?t=13578)

gregg 06-05-2019 09:27 AM

List of all open sessions
 
Hello! This would likely be a new feature. I generally almost always have as many secure crt tabs open as I do browser tabs.

It'd be great if there was a pop-up type window that listed all of the tabs and current connection state and a way to search/filter them. Possibly even across windows.

I frequently find myself giving up looking for a session I know I have open and start a new one which only exasperates the problem.

The Window menu only lists up to 10 open sessions, which is a start, but I have one scrt process right now showing 34 tabs, with others scrolled off to the right I can't see.

gregg 06-05-2019 10:06 AM

This kinda works for me, but isn't pretty; and quite limited.

Code:

# $language = "Python"
# $interface = "1.0"

def main():
  tabs = dict()
  tab_count = crt.GetTabCount()
  for idx in range(tab_count):
    tab = crt.GetTab(idx + 1)
    cap = tab.Caption
    if tab.Session.Connected:
      conn = "+"
    else:
      conn = "-"

    tabs[cap] = "%2d: [%s] %s" % (tab.Index, conn, cap)


  list = [ val for (key, val) in sorted(tabs.iteritems()) ]

  selected = crt.Dialog.Prompt("\n".join(list), "Sessions", "")
  if selected:
    crt.GetTab(int(selected)).Activate()

main()


jdev 06-05-2019 11:24 AM

Hi Gregg,

I've captured a feature request for you.

If we come up with something to share, we'll post news of it here.

--Jake


All times are GMT -6. The time now is 01:37 PM.