From c101a8c2abf0c25fc75e4101a83ae56bc2a9b789 Mon Sep 17 00:00:00 2001 From: Rory Dudley Date: Fri, 16 Feb 2024 22:36:31 -0700 Subject: Capture SIGINT Added logic to capture the interrupt signal. Using a rust crate called 'ctrlc' to do the heavy lifting. Program will simply reprint the prompt on a new line if the interrup signal is detected. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index e7d40d3..00fdb24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,3 +12,4 @@ path = "src/main.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +ctrlc = "3.4.2" -- cgit v1.2.3