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