5 个版本
| 0.2.0 | 2024 年 1 月 29 日 |
|---|---|
| 0.1.3 | 2021 年 4 月 27 日 |
| 0.1.2 | 2021 年 1 月 21 日 |
| 0.1.1 | 2021 年 1 月 21 日 |
| 0.1.0 | 2021 年 1 月 21 日 |
1755 在 命令行工具 中排名
每月 40 次下载
3KB
描述
类似于 c++ 的 system("pause") 功能的 crate
用法
use pause_console::pause_console;
// print "Press Enter to continue..." then wait till Enter pressed
pause_console!();
// same with custom message
pause_console!("Sample message");
// and you can format and output message
pause_console!("Sample message: {}", 1);
注意事项
pause_console! 不会阻止用户输入除 Enter 之外的其他字符,它们将可见。此库适用于快速原型设计或内部项目。为了更好的用户体验,请使用 crossterm。