JamoDevNich / SuperHub3-CLI

A command-line interface for managing the VM SuperHub 3/ARRIS TG2492S/CE router. Allows listing current/past connected devices, toggle private/guest WLAN, rebooting and viewing router status
17 stars 2 forks source link

Staying in the loop #4

Closed haywirephoenix closed 6 years ago

haywirephoenix commented 6 years ago

Any advice on how to prevent it from dropping out/exiting after a command is run? It seems like this was the intended behaviour.

JamoDevNich commented 6 years ago

It is the intended behaviour, however enclosing the menu in a while True loop will prevent it from exiting after running a command.

https://github.com/JamoDevNich/ClientsAPI-SuperHub3/blob/c30efb17489e112b87972fd432ffc20a802d55f4/superhubclientsapi.py#L384-L398

haywirephoenix commented 6 years ago

Works great thanks, I also added a os.system('cls') to the menu to keep it tidy.