pause_console

Crates.iopause_console
lib.rspause_console
version0.2.0
sourcesrc
created_at2021-01-21 16:16:21.910742
updated_at2024-01-29 18:17:51.181369
descriptionPauses the console
homepage
repositoryhttps://github.com/MeowningMaster/pause_console
max_upload_size
id344934
size2,408
Andrii Semenystyi (MeowningMaster)

documentation

README

Description

Crate that brings functionality similar to c++'s system("pause")

Usage

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);

Caveats

pause_console! does not prevent the user from entering characters other than Enter, they will be visible. This library is good for rapid prototyping or internal projects. For better user experience use crossterm.

Commit count: 10

cargo fmt