From da85f89fec43f2cbed00546280aadcfdc5c66092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E6=89=B9=E7=9A=84=E4=B8=80=E6=89=B9?= Date: Mon, 27 Apr 2020 15:09:41 +0800 Subject: [PATCH] Delete 'examples/cmd-menu.py' --- examples/cmd-menu.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 examples/cmd-menu.py diff --git a/examples/cmd-menu.py b/examples/cmd-menu.py deleted file mode 100644 index 4e42a7c..0000000 --- a/examples/cmd-menu.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: UTF-8 -*- - -from pick import pick -import sshserver - -title = 'Please choose your favorite programming language: ' -# options = ['quit', 'Java', 'JavaScript', 'Python', 'PHP', 'C++', 'Erlang', 'Haskell'] -options = ['ckqas:192.168.1.44:22', 'ckqas129:192.168.1.129:22'] -# option, index = pick(options, title) -# print(option, index) - - -if __name__ == '__main__': - while True: - option, index = pick(options, title) - if option == "quit": - exit(0) - - arr = option.split(":") - if len(arr) == 3: - host = arr[1] - port = int(arr[2]) - sshserver.NewTerminal(host, port, "daniel") -