diff options
author | 2015-08-18 16:21:53 +0300 | |
---|---|---|
committer | 2015-08-18 16:21:53 +0300 | |
commit | ace4f5990ef18bb3a76d042b60d7a8af02bcd357 (patch) | |
tree | ca96a14f4f7307f6a1eee20806dded398de87abd /src/console/trex_console.py | |
parent | 65b3e045334ce93162fadc85ea241b8b7667482d (diff) |
added status panel
Diffstat (limited to 'src/console/trex_console.py')
-rwxr-xr-x | src/console/trex_console.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/console/trex_console.py b/src/console/trex_console.py index 3e452bf5..ca4c7e86 100755 --- a/src/console/trex_console.py +++ b/src/console/trex_console.py @@ -4,6 +4,7 @@ import cmd import json from trex_rpc_client import RpcClient +import trex_status class TrexConsole(cmd.Cmd): """Trex Console""" @@ -78,6 +79,10 @@ class TrexConsole(cmd.Cmd): def complete_rpc (self, text, line, begidx, endidx): return [x for x in self.supported_rpc if x.startswith(text)] + def do_status (self, line): + '''Shows a graphical console\n''' + trex_status.show_trex_status(self.rpc_client) + def do_quit(self, line): '''\nexit the client\n''' return True |