Closed aaeegg closed 10 months ago
will check this later, but if you're just refreshing a single line, simply appending a \r
should work ? like you already do elsewhere in e.g. cmd_850_dumpram
Refreshing at least two lines (hex dump and interpreted data), per parameter; some parameters have multiple lines of output; it's possible to display multiple parameters at once (as in "850 read 2 3 live").
Tested that it does compile with mingw-x64. Next, will need to try with the carsim db
Any news?
Any news?
apologies. This project is low priority and I easily forget stuff that I can't immediately address. Have a bit of time right now to test
With a (small ? TBD) tangent; my distro decided to break cppcheck, and the way these cmakelists are written, it's not easy to temporarily disable. Just what I wanted to work on tonight
Ok, tested on archlin and winXP with read 2 stream
and read 2 live
. Nice.
Next time we need to add more fancy console handling, we might consider ncurses.
Two more requests before merging if you don't mind -
diag_os_cursor_up(int lines)
: unless there is a use for lines < 0 that I don't see, arg should be unsigned
if you don't have time in the next day or two, I might be able to. And if this falls of the table again, ping me every few days...
OK, I split the commit and made lines unsigned.
Thanks for your continued patience. Merged ! I also removed some duplciation in the .db files, added a (disabled) test for further reference. Will try to address #93 maybe later today
This adds a mode that continuously reads live data and updates the on-screen values without scrolling additional lines onto the screen. This is initiated by the keyword "live" at the end of a read or peek command. Previously, this keyword continuously read live data and scrolled new data onto the screen with each read. The keyword for that functionality is now "stream".
This works on Linux. I included code for Windows which I believe is correct, but I don't have a toolchain so I don't know if it even compiles.
This is an example of the old functionality, now accessed by the "stream" keyword:
This is the new functionality, accessed by the "live" keyword: