pub fn exit_if_kb_interrupt(event: &Option<Event>)Expand description
If the event is a Ctrl+C (Keyboard Interrupt), exit immediately.
ยงExample
// Will get the input but exit the process if the input was `Ctrl+C`
keypress::exit_if_kb_interrupt(&event);