Skip to content

v0.2.0 - Add init_ctrlc_with_print() for message printing

Choose a tag to compare

@malt03 malt03 released this 17 Sep 13:10
· 2 commits to main since this release
v0.2.0
4a595a9

What's New

  • Added init_ctrlc_with_print(message: &str) - prints a message to stderr when Ctrl+C is pressed
  • Existing init_ctrlc() remains unchanged for simple use cases

Usage

ctrlc_tiny::init_ctrlc_with_print("Ctrl+C pressed\n")?;
while !ctrlc_tiny::is_ctrlc_received() {
    // Do work here
}