Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return non-zero exit code when physical pause button is pressed #126

Closed
migurski opened this issue May 14, 2022 · 4 comments
Closed

Return non-zero exit code when physical pause button is pressed #126

migurski opened this issue May 14, 2022 · 4 comments

Comments

@migurski
Copy link
Contributor

I sometimes chain plot commands together, like this:

axicli && axicli && axicli

If during one of those commands I press the physical pause button, axicli stops drawing as it should but the zero exit status immediately moves on to the next plot in the chain. A non-zero status would halt the set of commands completely.

@oskay
Copy link
Contributor

oskay commented May 14, 2022

Interesting. I'll have to think about this.

Right now, non-zero status is only used (I believe) for a couple of error conditions, and a pause is not an error condition. Pauses can happen because they are programmed in the SVG file, from a physical button press, or keyboard interrupt.

@migurski
Copy link
Contributor Author

Physical button presses and keyboard interrupts both seem like exceptional events that could lead to a non-zero exit status. No idea about the SVG pause events!

@oskay
Copy link
Contributor

oskay commented May 14, 2022

Indeed.

@oskay
Copy link
Contributor

oskay commented Oct 6, 2022

Feature implemented as of v3.6.

@oskay oskay closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants