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