Tools for GNS3 GUI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0006-Tools-Modify-creation-of-terminal-window-for-OS-X.patch 779B

123456789101112131415161718192021222324252627282930
  1. From 5c89166dbba60d6c2990ed011c56fc24f910fa9f Mon Sep 17 00:00:00 2001
  2. From: Bernhard Ehlers <be@bernhard-ehlers.de>
  3. Date: Fri, 16 Feb 2018 13:36:53 +0100
  4. Subject: [PATCH 6/7] Tools - Modify creation of terminal window for OS X
  5. ---
  6. gns3/tool.py | 7 +++----
  7. 1 file changed, 3 insertions(+), 4 deletions(-)
  8. diff --git a/gns3/tool.py b/gns3/tool.py
  9. index f567213..9044161 100644
  10. --- a/gns3/tool.py
  11. +++ b/gns3/tool.py
  12. @@ -125,10 +125,9 @@ on run (args)
  13. else
  14. tell application "Terminal"
  15. activate
  16. - repeat while not exists (window 1)
  17. - delay 0.2
  18. - activate
  19. - end repeat
  20. + if not exists (window 1)
  21. + tell application "System Events" to keystroke "n" using command down
  22. + end if
  23. do script cmd in window 1
  24. end tell
  25. end if
  26. --
  27. 2.10.1 (Apple Git-78)