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