1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-28 09:12:19 +03:00
wezterm/termwiz/examples/line_editor.rs

12 lines
213 B
Rust
Raw Normal View History

use failure::Fallible;
use termwiz::lineedit::line_editor;
2019-05-27 07:10:37 +03:00
fn main() -> Fallible<()> {
let mut editor = line_editor()?;
2019-05-27 07:10:37 +03:00
let line = editor.read_line()?;
println!("read line: {}", line);
Ok(())
}