From 915073cf09000a352a26ce16d094c7102d48539b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 12 Nov 2021 16:58:37 -0500 Subject: reorder the functions --- src/screen.rs | 12 ++++++------ 1 file 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 -- cgit v1.2.3-54-g00ecf