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
1b2308aaef55dc94abc2b5897a221be5942a9209
topgrade/src/ctrlc/windows.rs

10 lines
133 B
Rust
Raw Normal View History

Ctrl+C handling documentation
2018-12-31 14:07:55 +02:00
//! A stub for Ctrl + C handling.
pub fn interrupted() -> bool {
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
true
}
Ctrl+C handling documentation
2018-12-31 14:07:55 +02:00
pub fn unset_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
pub fn set_handler() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 65ms Template: 3ms
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