From 05188c0e281cc452c4ad0f18344a11cb0dec541e Mon Sep 17 00:00:00 2001 From: mh4x0f Date: Sat, 29 Feb 2020 21:15:57 -0300 Subject: [PATCH] improved info_ap command print mode --- core/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/main.py b/core/main.py index 80b1455..0cf1d48 100644 --- a/core/main.py +++ b/core/main.py @@ -229,19 +229,19 @@ class PumpkinShell(Qt.QObject, ConsoleUI): self.killThreads() - def do_info(self, args): - ''' show all variable for settings AP''' - headers_table, output_table = ["BSSID", "SSID", "Channel", "Iface"], [] + def do_info_ap(self, args): + ''' show all variable and status for settings AP ''' + headers_table, output_table = ["BSSID", "SSID", "Channel", "Iface", "StatusAP"], [] print(display_messages('Settings AccessPoint:',info=True,sublime=True)) + status_ap =self.conf.get('accesspoint',"statusAP", format=bool) output_table.append([ self.conf.get('accesspoint',self.commands["bssid"]), self.conf.get('accesspoint',self.commands["ssid"]), self.conf.get('accesspoint',self.commands["channel"]), self.conf.get('accesspoint',self.commands["interface"]), - ]) + setcolor('Yes',color='green') if status_ap else setcolor('False',color='red')]) print(tabulate(output_table, headers_table,tablefmt="simple")) print('\n') - def do_set(self, args): ''' set variable for access point '''