Skip to main content

enter_prompt

Function enter_prompt 

Source
pub fn enter_prompt(term: &Term) -> String
Expand description

The standard Enter prompt: a space and ENTER_PROMPT_TEXT, dimmed when colour is on.

use shellgame::ui::{Term, enter_prompt};

assert_eq!(enter_prompt(&Term::plain(80)), " Stiskněte Enter pro pokračování...");