[−][src]Function alacritty_terminal::term::test::mock_term
pub fn mock_term(content: &str) -> Term<()>
Construct a terminal from its content as string.
A \n
will break line and \r\n
will break line without wrapping.
Examples
use alacritty_terminal::term::test::mock_term; // Create a terminal with the following cells: // // [h][e][l][l][o] <- WRAPLINE flag set // [:][)][ ][ ][ ] // [t][e][s][t][ ] mock_term( "\ hello\n:)\r\ntest", );