termal_core 5.0.0

This library contains implementation for the termal library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::term_text::TermText;

/// Configuration for terminal reader.
#[derive(Debug, Clone, Default)]
pub struct ReadConf<'a> {
    /// What thext should be edited. Empty by default.
    pub edit: Vec<char>,
    /// Position of cursor within the edited text. End by default.
    pub edit_pos: Option<usize>,
    /// Prompt for the input. Empty by default.
    pub prompt: TermText<'a>,
}