Try to find text targets in tester::recorder

This commit is contained in:
Héctor Ramón Jiménez 2025-08-23 06:37:02 +02:00
parent 81d1eda7fe
commit 1923d1db1e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 245 additions and 59 deletions

View file

@ -546,6 +546,7 @@ impl<P: Program + 'static> Tester<P> {
column(self.instructions.iter().enumerate().map(
|(i, instruction)| {
monospace(instruction.to_string())
.wrapping(text::Wrapping::None) // TODO: Ellipsize?
.size(10)
.style(move |theme: &Theme| text::Style {
color: match &self.state {