If the terminal window has less than 24 lines, then an error message is displayed in the auth activity

This commit is contained in:
veeso
2021-06-16 22:00:28 +02:00
parent c1bc81c664
commit a00c0117a2
6 changed files with 71 additions and 3 deletions
+12
View File
@@ -68,4 +68,16 @@ impl AuthActivity {
pub(super) fn is_port_standard(port: u16) -> bool {
port < 1024
}
/// ### check_minimum_window_size
///
/// Check minimum window size window
pub(super) fn check_minimum_window_size(&mut self, height: u16) {
if height < 24 {
// Mount window error
self.mount_size_err();
} else {
self.umount_size_err();
}
}
}