wakepy icon indicating copy to clipboard operation
wakepy copied to clipboard

Prevent unhanded quitting from wakepy CLI command

Open fohrloop opened this issue 1 year ago • 0 comments

It is currently (v.0.8.0dev) possible to quit the wakepy CLI app with Ctrl+C. That is the instructed way (raises KeyboardInterrupt).

Also these seem to quit wakepy

  • Ctrl + Z --> get
/ [Press Ctrl+C to exit]^Z
[5]+  Stopped                 wakepy
  • Ctrl + < (Finnish Keyboard) --> get
| [Press Ctrl+C to exit]^\Quit (core dumped)

The problem is that if the mode is not deactivated properly, in some cases it might leave something in a bad state. Currently no wakepy.Method is such that it would leave something behind, but it would probably be better to be too careful with this.

Task

  • Handle these inputs and simply ignore them.

fohrloop avatar Jan 23 '24 20:01 fohrloop