#[macro_use]
#[path = "support/mod.rs"]
mod support;
use shpool_vterm::{term, ContentRegion};
frag! {
reverse_index_partial_screen { scrollback_lines: 100, width: 5, height: 10 }
<= term::Raw::from("11"), term::Crlf::default(),
term::Raw::from("22"),
term::ControlCodes::cursor_position(1, 1),
term::control_codes().reverse_index,
term::Raw::from("XX")
=> ContentRegion::All =>
reset_codes,
term::Raw::from("XX"),
term::Crlf::default(),
term::Raw::from("11"),
term::Crlf::default(),
term::Raw::from("22"),
term::ControlCodes::cursor_position(1, 3),
term::control_codes().clear_attrs
}
frag! {
insert_lines_partial_screen { scrollback_lines: 100, width: 5, height: 10 }
<= term::Raw::from("11"), term::Crlf::default(),
term::Raw::from("22"),
term::ControlCodes::cursor_position(1, 1),
term::ControlCodes::insert_lines(1),
term::Raw::from("XX")
=> ContentRegion::All =>
reset_codes,
term::Raw::from("XX"),
term::Crlf::default(),
term::Raw::from("11"),
term::Crlf::default(),
term::Raw::from("22"),
term::ControlCodes::cursor_position(1, 3),
term::control_codes().clear_attrs
}
frag! {
delete_lines_partial_screen { scrollback_lines: 100, width: 5, height: 10 }
<= term::Raw::from("11"), term::Crlf::default(),
term::Raw::from("22"), term::Crlf::default(),
term::Raw::from("33"),
term::ControlCodes::cursor_position(2, 1),
term::ControlCodes::delete_lines(1)
=> ContentRegion::All =>
reset_codes,
term::Raw::from("11"),
term::Crlf::default(),
term::Raw::from("33"),
term::Crlf::default(),
term::ControlCodes::cursor_position(2, 1),
term::control_codes().clear_attrs
}