vintagepc / MK404

A functional Simulator for Prusa (Mini/Einsy) Rambo based printers
https://vintagepc.github.io/MK404/
GNU General Public License v3.0
72 stars 9 forks source link

Let ScriptHost read from stdio #351

Closed vintagepc closed 2 years ago

vintagepc commented 2 years ago

Description

Extend scripting to stdio so other programs can interface "live" with MK404.

Behaviour/ Breaking changes

None, only adds functionality.

Have you tested the changes?

Works locally.

Other

Scripting via stdio is only supported if no script file is loaded and --terminal is not enabled.

Linked issues:

codecov[bot] commented 2 years ago

Codecov Report

Merging #351 (5db8852) into master (6770873) will increase coverage by 0.29%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #351      +/-   ##
==========================================
+ Coverage   91.10%   91.40%   +0.29%     
==========================================
  Files         167      167              
  Lines        7733     7768      +35     
==========================================
+ Hits         7045     7100      +55     
+ Misses        688      668      -20     
Impacted Files Coverage Δ
parts/ScriptHost.h 92.30% <ø> (-0.55%) :arrow_down:
MK404.cpp 87.07% <100.00%> (+0.48%) :arrow_up:
parts/ScriptHost.cpp 65.14% <100.00%> (+8.07%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6770873...5db8852. Read the comment docs.