GUI: parse Deskew CLI output
galfar opened this issue · 0 comments
Newer GUI version may not work correctly when paired with outdated CLI program (new options, deprecated options, etc.) => deskewing then fails but there is just not very visible e.g. "Invalid params" message in the output log.
GUI could check if the CLI is a reasonable version (parse the captured console output).
This could be printed somewhere on the "Progress" page (Detected version: 1.40, tested version: 1.35). Or in the console output with some highlight.
Another possibility is to color the console output (line background?) when Error or FinishedOk message is detected. We would have to switch from TMemo to TRichMemo, such styling is supposed to be supported on all 3 supported platforms: https://wiki.freepascal.org/RichMemo#Append_mixed_color_text_at_the_end_of_the_RichMemo
Colors:
- error: reddish
- finished ok: greenish
- useful info (in + out file names): light blueish