- Timestamp:
- 07/16/20 15:10:12 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/FramsticksCLI.py
r1013 r1014 138 138 self.child.expect('\r\n' if os.name == "nt" else '\n') 139 139 msg = str(self.child.before) 140 if self.PRINT_FRAMSTICKS_OUTPUT or msg.startswith("[ERROR]") :140 if self.PRINT_FRAMSTICKS_OUTPUT or msg.startswith("[ERROR]") or msg.startswith("[CRITICAL]"): 141 141 print(msg) 142 142 if until_marker in msg: … … 182 182 183 183 def sendDirectCommand(self, command: str) -> str: 184 """Sends any command to Framsticks CLI. Use when you know Framsticks and its scripting language, Framscript.""" 184 """Sends any command to Framsticks CLI. Use when you know Framsticks and its scripting language, Framscript. 185 186 Returns: 187 The output of the command, likely with extra \\n because for each entered command, Framsticks CLI responds with a (muted in Quiet mode) prompt and a \\n. 188 """ 185 189 self.child.sendline(command.strip()) 186 190 next(FramsticksCLI.sendDirectCommand_counter)
Note: See TracChangeset
for help on using the changeset viewer.