mirror of
https://github.com/wez/wezterm.git
synced 2024-09-21 03:39:16 +03:00
fixup tests
This commit is contained in:
parent
b1af0cefbd
commit
cd027430db
@ -1,7 +1,7 @@
|
|||||||
//! The `LineEditor` struct provides line editing facilities similar
|
//! The `LineEditor` struct provides line editing facilities similar
|
||||||
//! to those in the unix shell.
|
//! to those in the unix shell.
|
||||||
//!
|
//!
|
||||||
//! ```
|
//! ```no_run
|
||||||
//! use failure::Fallible;
|
//! use failure::Fallible;
|
||||||
//! use termwiz::lineedit::line_editor;
|
//! use termwiz::lineedit::line_editor;
|
||||||
//!
|
//!
|
||||||
@ -37,7 +37,7 @@ use unicode_width::UnicodeWidthStr;
|
|||||||
|
|
||||||
/// The `LineEditor` struct provides line editing facilities similar
|
/// The `LineEditor` struct provides line editing facilities similar
|
||||||
/// to those in the unix shell.
|
/// to those in the unix shell.
|
||||||
/// ```
|
/// ```no_run
|
||||||
/// use failure::Fallible;
|
/// use failure::Fallible;
|
||||||
/// use termwiz::lineedit::line_editor;
|
/// use termwiz::lineedit::line_editor;
|
||||||
///
|
///
|
||||||
@ -66,7 +66,10 @@ impl<T: Terminal> LineEditor<T> {
|
|||||||
/// this snippet shows the recommended way to create a line
|
/// this snippet shows the recommended way to create a line
|
||||||
/// editor:
|
/// editor:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```no_run
|
||||||
|
/// use termwiz::caps::{Capabilities, ProbeHintsBuilder};
|
||||||
|
/// use termwiz::terminal::new_terminal;
|
||||||
|
/// use failure::err_msg;
|
||||||
/// // Disable mouse input in the line editor
|
/// // Disable mouse input in the line editor
|
||||||
/// let hints = ProbeHintsBuilder::new_from_env()
|
/// let hints = ProbeHintsBuilder::new_from_env()
|
||||||
/// .mouse_reporting(Some(false))
|
/// .mouse_reporting(Some(false))
|
||||||
@ -74,6 +77,7 @@ impl<T: Terminal> LineEditor<T> {
|
|||||||
/// .map_err(err_msg)?;
|
/// .map_err(err_msg)?;
|
||||||
/// let caps = Capabilities::new_with_hints(hints)?;
|
/// let caps = Capabilities::new_with_hints(hints)?;
|
||||||
/// let terminal = new_terminal(caps)?;
|
/// let terminal = new_terminal(caps)?;
|
||||||
|
/// # Ok::<(), failure::Error>(())
|
||||||
/// ```
|
/// ```
|
||||||
pub fn new(terminal: T) -> Self {
|
pub fn new(terminal: T) -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
@ -835,6 +835,10 @@ mod test {
|
|||||||
bail!("not implemented");
|
bail!("not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn set_cooked_mode(&mut self) -> Fallible<()> {
|
||||||
|
bail!("not implemented");
|
||||||
|
}
|
||||||
|
|
||||||
fn enter_alternate_screen(&mut self) -> Fallible<()> {
|
fn enter_alternate_screen(&mut self) -> Fallible<()> {
|
||||||
bail!("not implemented");
|
bail!("not implemented");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user