Skip to content

Commit 7eb887c

Browse files
committed
dp/hdmi updater: Prevent from auto closing
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 336a92f commit 7eb887c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

framework_tool/src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@ fn main() {
2424
} else {
2525
commandline::print_dp_hdmi_details();
2626
}
27+
28+
// Prevent command prompt from auto closing
29+
if cfg!(windows) {
30+
println!();
31+
println!("Press ENTER to exit...");
32+
let mut line = String::new();
33+
let _ = std::io::stdin().read_line(&mut line).unwrap();
34+
}
2735
}

0 commit comments

Comments
 (0)