Introduce WithRestoredIO (#307)

This function allow running a callback with the terminal hooks
temporarily uninstalled.

Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
Vladislav Nepogodin
2022-01-19 16:38:39 +04:00
committed by GitHub
parent cd82fccde7
commit b4a655ec65
5 changed files with 93 additions and 14 deletions

View File

@@ -31,3 +31,4 @@ example(slider_rgb)
example(tab_horizontal)
example(tab_vertical)
example(toggle)
example(with_restored_io)