commit | c6126af9a3d71b185d8e2ec0cf50a910fc075481 | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Wed Dec 15 14:10:32 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 16 22:04:40 2021 +0000 |
tree | 1d3a3973ec2df46c8e7bdbf651e4b11a622928ac | |
parent | c01abafd955874cabb769ccd795946ebc2292314 [diff] |
pw_console: Enable repl output line wrapping - Fix mouse wheel scrolling with output buffer line wrapping enabled. Previously this would get stuck half way up or so if line wrapping was enabled. This case isn't handled correctly for arbitrary content due to: https://github.com/prompt-toolkit/python-prompt-toolkit/blob/e9eac2eb59ec385e81742fa2ac623d4b8de00925/prompt_toolkit/layout/containers.py#L2599 For our use case the content is a prompt_toolkit Buffer so we can ignore that condition. - Add Python Results toolbar button to toggle line wrapping. - Fix glitch in toolbar titles being overwritten, Python Results toolbar was being shown as Python Repl. Manual Test: Python Input & Output all steps Change-Id: I27e0be5a4d9042d0912cab6e1c9bf694869781a0 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/74760 Reviewed-by: Keir Mierle <keir@google.com> Commit-Queue: Anthony DiGirolamo <tonymd@google.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/