sidneys / ffmpeg-progressbar-cli

A colored progress bar for FFmpeg.
https://npmjs.com/package/ffmpeg-progressbar-cli
MIT License
210 stars 22 forks source link

Reset terminal state when exiting due to signal #29

Open systemmonkey42 opened 3 years ago

systemmonkey42 commented 3 years ago

Can you please add a signal handler for SIGINT and SIGTERM to ensure the terminal state is reset before exiting?

Currently if I press ctrl-c during a transcode, I need to manually get the terminal back to normal.

Thanks