(self, client, command)
| 53 | |
| 54 | class Cli: |
| 55 | def __init__(self, client, command): |
| 56 | self.client = client |
| 57 | self.command = command |
| 58 | |
| 59 | if not self.command: |
| 60 | renameProcess('pyLoadCli') |
| 61 | self.getch = Getch() |
| 62 | self.input = "" |
| 63 | self.inputline = 0 |
| 64 | self.lastLowestLine = 0 |
| 65 | self.menuline = 0 |
| 66 | |
| 67 | self.lock = Lock() |
| 68 | |
| 69 | #processor funcions, these will be changed dynamically depending on control flow |
| 70 | self.headerHandler = self #the download status |
| 71 | self.bodyHandler = self #the menu section |
| 72 | self.inputHandler = self |
| 73 | |
| 74 | os.system("clear") |
| 75 | println(1, blue("py") + yellow("Load") + white(_(" Command Line Interface"))) |
| 76 | println(2, "") |
| 77 | |
| 78 | self.thread = RefreshThread(self) |
| 79 | self.thread.start() |
| 80 | |
| 81 | self.start() |
| 82 | else: |
| 83 | self.processCommand() |
| 84 | |
| 85 | def reset(self): |
| 86 | """ reset to initial main menu """ |
no test coverage detected