Logo
Explore Help
Register Sign In
admin/topgrade
1
0
Fork 0
You've already forked topgrade
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
b6e50a38afc35aa34e02b46e1b1684fc20e5657f
topgrade/src/ctrlc/mod.rs

14 lines
200 B
Rust
Raw Normal View History

Proper ctrl+c handling in Windows (fix #508)
2020-08-26 22:30:19 +03:00
mod interrupted;
Ctrl+C handling (#75) As stated [here](https://doc.rust-lang.org/std/io/trait.BufRead.html#errors-1), `read_until` (and `read_line`) ignore Ctrl+C, so Topgrade does not respond to Ctrl+C in the retry prompt, and instead will exit only when enter is pressed after Ctrl+C. This is undesirable, so this pull request is a WIP until we find a solution.
2018-10-17 14:07:58 +03:00
#[cfg(unix)]
mod unix;
#[cfg(unix)]
Proper ctrl+c handling in Windows (fix #508)
2020-08-26 22:30:19 +03:00
pub use self::unix::set_handler;
Ctrl+C handling (#75) As stated [here](https://doc.rust-lang.org/std/io/trait.BufRead.html#errors-1), `read_until` (and `read_line`) ignore Ctrl+C, so Topgrade does not respond to Ctrl+C in the retry prompt, and instead will exit only when enter is pressed after Ctrl+C. This is undesirable, so this pull request is a WIP until we find a solution.
2018-10-17 14:07:58 +03:00
#[cfg(windows)]
mod windows;
#[cfg(windows)]
Proper ctrl+c handling in Windows (fix #508)
2020-08-26 22:30:19 +03:00
pub use self::windows::set_handler;
pub use self::interrupted::*;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 85ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API