I am developing a console application to manage firewall devices from a unix server. The console application is based on npyscreen library of python. One of the options I need to provide to the users is login to the device CLI from the TUI thats developed using npyscreen. For this I need to toggle between the TUI and the device CLI once the login has happened to the device from the unix server.
Can anyone (having experience with npyscreen) help me on how this can be done in npyscreen?
The flow here is like :
- Select option to login to the device (in TUI)
- The TUI executes backend script to login to the device
- TUI allows user to see the device console may be by toggling from TUI to the CLI mode
- The user does his things on the device in the console mode
- User exits the device CLI and is landed back to the TUI again.
Any help will be appreciated.
Regards Pradeep