commit | 9ae1871952396c0b242f7d7cdb3e202264ab8687 | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Thu Sep 08 16:11:51 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 08 16:11:51 2022 +0000 |
tree | f09876ad7a60a537e3c7e2473f786a7823449ad9 | |
parent | 3dd4cf26acdb67e76484984aad564842b5855178 [diff] |
pw_console: Run system commands in the repl Typing !ls in the Python repl will run a shell command. This is a ptpython feature and actually works today but will corrupt the fullscreen TUI if you try it. This change lets the shell command run in the user code thread with output appearing in the Python Results window like any other Python command. An additional 'Shell Output' log pane will appear and log all commands with full ANSI color. Even long running processes like 'ninja -C out' will work as expected. Change-Id: I5a1f1df6b0915b9b7ccc30d31a2b48f500fe8db3 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/84749 Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com> Reviewed-by: Erik Gilling <konkers@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.