1 use alloc::vec::Vec; 2 3 pub mod console; 4 pub mod kthread; 5 mod sysfs; 6 pub mod termios; 7 pub mod tty_core; 8 pub mod tty_device; 9 pub mod tty_driver; 10 pub mod tty_job_control; 11 pub mod tty_ldisc; 12 pub mod tty_port; 13 pub mod virtual_terminal; 14 15 // 下列结构体暂时放在这 16 /// 键盘/显示器"(Keyboard/Display)模式 17 #[allow(dead_code)] 18 #[derive(Debug, PartialEq, Clone)] 19 pub enum KDMode { 20 KdText, 21 KdGraphics, 22 KdText0, 23 KdText1, 24 Undefined, 25 } 26 27 impl Default for KDMode { 28 fn default() -> Self { 29 Self::Undefined 30 } 31 } 32 33 #[derive(Debug, Default, Clone)] 34 pub struct ConsoleFont { 35 pub width: u32, 36 pub height: u32, 37 pub count: u32, 38 pub data: Vec<u8>, 39 } 40