pub fn new(
        title: TermString,
        buffer: TermString,
        max: Coord,
        filter: F,
    ) -> Self {
        Self {
            title,
            buffer,
            filter,
            max,
            title_colors: Color2::default(),
            selected_colors: !Color2::default(),
            unselected_colors: Color2::default(),
            cursor_colors: Color2::default(),
            box_colors: !Color2::default(),
            bg: BasicColor::Black.into(),
            title_y: 1,
            pad_after_title: 2,
            pad_after_box: 2,
            pad_after_ok: 1,
        }
    }
/// Creates a new input dialog, with the given title, initial buffer,
/// maximum input size, and filter function.
Creates a new input dialog, with the given title, initial buffer,
maximum input size, and filter function.
Creates a new input dialog with the given title initial buffer maximum input size and filter function .
pub fn new(
        title: TermString,
        buffer: TermString,
        max: Coord,
        filter: F,
    ) -> Self {
        Self {
            title,
            buffer,
            filter,
            max,
            title_colors: Color2::default(),
            selected_colors: !Color2::default(),
            unselected_colors: Color2::default(),
            cursor_colors: Color2::default(),
            box_colors: !Color2::default(),
            bg: BasicColor::Black.into(),
            title_y: 1,
            pad_after_title: 2,
            pad_after_box: 2,
            pad_after_ok: 1,
        }
    }
pub fn new ( title : TermString , buffer : TermString , max : Coord , filter : F , ) -> Self { Self { title , buffer , filter , max , title_colors : Color2 :: default ( ) , selected_colors : ! Color2 :: default ( ) , unselected_colors : Color2 :: default ( ) , cursor_colors : Color2 :: default ( ) , box_colors : ! Color2 :: default ( ) , bg : BasicColor :: Black . into ( ) , title_y : 1 , pad_after_title : 2 , pad_after_box : 2 , pad_after_ok : 1 , } }
Creates a new input dialog, with the given title, initial buffer,
maximum input size, and filter function.
Creates a new input dialog with the given title initial buffer maximum input size and filter function .
title
TermString
buffer
TermString
max
Coord
filter
F
title
TermString
buffer
TermString
max
Coord
filter
F