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
19de3617754a07265660365adece6fe21ea83d6c
topgrade/src/ctrlc/windows.rs

8 lines
100 B
Rust
Raw Normal View History

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 running() -> bool {
true
}
pub fn set_running(_value: bool) {}
pub fn set_handler() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 93ms 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