Home
last modified time | relevance | path

Searched refs:col (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs253 pub fn from_256(col: u32) -> Self { in from_256()
255 if col < 8 { in from_256()
256 color.red = if col & 1 != 0 { 0xaa } else { 0x00 }; in from_256()
257 color.green = if col & 2 != 0 { 0xaa } else { 0x00 }; in from_256()
258 color.blue = if col & 4 != 0 { 0xaa } else { 0x00 }; in from_256()
259 } else if col < 16 { in from_256()
260 color.red = if col & 1 != 0 { 0xff } else { 0x55 }; in from_256()
261 color.green = if col & 2 != 0 { 0xff } else { 0x55 }; in from_256()
262 color.blue = if col & 4 != 0 { 0xff } else { 0x55 }; in from_256()
263 } else if col < 232 { in from_256()
[all …]
/DragonOS/kernel/src/libs/
H A Dkeyboard_parser.rs287 let mut col: bool = false; in handle_type3() localVariable
331 col = true; in handle_type3()
339 col = !col; in handle_type3()
342 let mut ch = TYPE1_KEY_CODE_MAPTABLE[col as usize + 2 * index as usize]; in handle_type3()
/DragonOS/kernel/src/driver/tty/
H A Dtermios.rs10 pub col: u16, field
19 pub const fn new(row: u16, col: u16, xpixel: u16, ypixel: u16) -> Self { in new()
22 col, in new()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs66 let col = self.mono_color(); in get_color() localVariable
70 fg = col; in get_color()
74 bg = col; in get_color()
384 let col = palette.get_mut(idx as usize).unwrap(); in con_set_palette() localVariable
385 col.red = (vc_palette[i].red << 8) | vc_palette[i].red; in con_set_palette()
386 col.green = (vc_palette[i].green << 8) | vc_palette[i].green; in con_set_palette()
387 col.blue = (vc_palette[i].blue << 8) | vc_palette[i].blue; in con_set_palette()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs408 Some(tty.core().window_size().col.into()), in install()