aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-12 16:58:37 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-12 16:58:37 -0500
commit915073cf09000a352a26ce16d094c7102d48539b (patch)
treedc740940bfbd59dd99d55dab6b4ad55b5bce73fa
parent65ae6b2a7ae1ea835e127bf5bae55d939ab5085c (diff)
downloadvt100-rust-915073cf09000a352a26ce16d094c7102d48539b.tar.gz
vt100-rust-915073cf09000a352a26ce16d094c7102d48539b.zip
reorder the functions
-rw-r--r--src/screen.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/screen.rs b/src/screen.rs
index eaea554..83677ee 100644
--- a/src/screen.rs
+++ b/src/screen.rs
@@ -586,6 +586,12 @@ impl Screen {
self.visual_bell_count
}
+ /// Returns whether the alternate screen is currently in use.
+ #[must_use]
+ pub fn alternate_screen(&self) -> bool {
+ self.mode(MODE_ALTERNATE_SCREEN)
+ }
+
/// Returns whether the terminal should be in application keypad mode.
#[must_use]
pub fn application_keypad(&self) -> bool {
@@ -662,12 +668,6 @@ impl Screen {
self.attrs.inverse()
}
- /// Returns whether the alternate screen is currently in use.
- #[must_use]
- pub fn alternate_screen(&self) -> bool {
- self.mode(MODE_ALTERNATE_SCREEN)
- }
-
fn grid(&self) -> &crate::grid::Grid {
if self.mode(MODE_ALTERNATE_SCREEN) {
&self.alternate_grid