[][src]Function bear_lib_terminal::terminal::read_str

pub fn read_str(point: Point, max: i32) -> Option<String>

Reads up to max characters without parsing, starting at the specified coordinates.

Returns None if the user closed the window or pressed Escape, Some containing the read string otherwise.

The read string will contain up to max characters.

The string being read will be kept on-screen only during the reading process, the scene will be restored before returning (needs a refresh, though).

Refer to the documentation for the for the terminal_read_str() C API function for specific information.