pause_console 0.2.0

Pauses the console
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 2.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 97.31 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • mwstr/pause_console
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MeowningMaster

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.