13 Commits

Author SHA1 Message Date
1637a172fc st_record.py: Live view of signal values
The TUI is overhauled to display a live view of all received signals.
All values are rendered in hexadecimal, while events show their latest timestamp
and strings are stripped of trailing newlines.
2025-05-17 17:45:18 +02:00
c670df3ce0 WIP Signal TUI view 2025-05-17 16:08:39 +02:00
90787ec97e Update README.md, fix old references to old project name 2025-05-17 15:30:35 +02:00
622e29872d st_record.py: Better TUI display, exit on failing rich import
In TUI mode, bar displays are now hidden by default until its
diagnostic metric was received to declutter the UI.
This means that for instance the compression metrics are hidden
when this feature is not utilized in the traced program,
or all metrics are hidden if it does not call `st_diagtrace`.

The bars are now styled to not give an impression of being
a progress bar. The completed portion is colored gold while
a completed bar is indicated by red, as this usually
indicates a new maximum value.

A failing rich import in TUI mode now exits after
its error message.
2025-05-17 07:57:49 +02:00
1d6b1c31fc st_record.py: Fix signal detection and stdin read for TUI mode 2025-05-15 23:17:40 +02:00
93c6d6cdd2 st_record.py: TUI Update
st_record now features the "--tui" flag,
which when set uses the rich package to display live
diagnostic values via its progress bar renderable.

These are displayed regardless of the "--diagnostic" flag,
as this one only regards the recorded dump.
2025-05-15 22:57:14 +02:00
b76a97e394 Rename to "ST"
Name change due to confusion with the common programming verb "set".
2025-05-15 20:35:36 +02:00
0e068e764d Make rubout packet in output function optional 2025-05-15 20:08:37 +02:00
bf27293543 set_record.py: Add verbose tracing option
The commented out print statements tracking values arriving
are now switchable using the --trace flag.
2025-05-15 20:01:11 +02:00
0c7e730438 Finalize name change from PET to SET
There were still a few references to PET, which are corrected.
2025-05-14 21:10:19 +02:00
8b3a9ed381 README.md: Fix example program, elaborate on blurb
The example program (which is untested by the way) is corrected
to generate the desired sawtooth, and a more realistic
baudrate is chosen.

Blurb extended by supported signal types.
2025-05-14 20:59:02 +02:00
3ad06eeada set_record.py: Fixed input stream for Windows, omit null characters in string receive
This commit fixes two bugs, the first when recording
on Windows where the user is unable to stop the capture cleanly
and one regarding the VCD output being malformed due to null characters in strings.

Reading from the stdin buffer is generally better behaved on both platforms,
while not as performant. The user can now cancel the capture by terminating the source
program or issuing a keyboard interrupt.

The issue with string capture having trailing null characters is fixed,
which in the best case confuses GTKwave, or in the worst case segfaults it.
2025-05-14 20:49:25 +02:00
5c3473ff1f Initial release of Streaming Event Trace 2025-05-14 20:44:17 +02:00