cin::peek(). or something for keybard input to signal program shutdown.
I am writing a small program that monitors files, and it has a run loop. But I need a clean way to shut it down with ctrl z. Unfortunately not much luck here. Also having issues running the app because it doesn't have permissions to the folder it needs to monitor. I can run in debug because it auto asks for those. But it doesn't behave the same from compiled.
Mac mini, macOS 14.4