We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70bf3bc commit a36f98bCopy full SHA for a36f98b
examples/simple.rs
@@ -0,0 +1,6 @@
1
+extern crate ctrlc;
2
+use ctrlc::CtrlC;
3
+fn main() {
4
+ CtrlC::set_handler(|| println!("Hello world!"));
5
+ loop {}
6
+}
0 commit comments