/DragonOS-0.1.9/user/apps/dmesg/ |
D | main.c | 12 unsigned int color = 65280; in main() local 92 syscall(100000, &c[0], color, 0); in main() 99 color = 16744448; in main() 104 color = 16777215; in main() 109 color = 65280; in main()
|
/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/ |
D | mod.rs | 70 let mut color = Self::default(); in from_256() localVariable 72 color.red = if col & 1 != 0 { 0xaa } else { 0x00 }; in from_256() 73 color.green = if col & 2 != 0 { 0xaa } else { 0x00 }; in from_256() 74 color.blue = if col & 4 != 0 { 0xaa } else { 0x00 }; in from_256() 76 color.red = if col & 1 != 0 { 0xff } else { 0x55 }; in from_256() 77 color.green = if col & 2 != 0 { 0xff } else { 0x55 }; in from_256() 78 color.blue = if col & 4 != 0 { 0xff } else { 0x55 }; in from_256() 80 color.red = ((col - 16) / 36 * 85 / 2) as u16; in from_256() 81 color.green = ((col - 16) / 6 % 6 * 85 / 2) as u16; in from_256() 82 color.blue = ((col - 16) % 6 * 85 / 2) as u16; in from_256() [all …]
|
D | virtual_console.rs | 293 for (idx, color) in self.palette.iter_mut().enumerate() { in reset_palette() 294 color.red = DEFAULT_RED[idx]; in reset_palette() 295 color.green = DEFAULT_GREEN[idx]; in reset_palette() 296 color.blue = DEFAULT_BLUE[idx]; in reset_palette() 1069 let (idx, color) = self.t416_color(i); in csi_m() 1071 if color.is_some() { in csi_m() 1072 let color = color.unwrap(); in csi_m() localVariable 1073 let mut max = color.red.max(color.green); in csi_m() 1074 max = max.max(color.blue); in csi_m() 1077 if color.red > max / 2 { in csi_m() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/ |
D | framebuffer_console.rs | 49 let mut color = 0; in get_color() localVariable 56 color = (c as u32 >> fg_shift) & 0x0f in get_color() 59 color = (c as u32 >> bg_shift) & 0x0f in get_color() 75 color = if is_fg { fg } else { bg }; in get_color() 84 if color >= 1 && color <= 6 { in get_color() 86 color = 2; in get_color() 87 } else if color >= 7 && color <= 8 { in get_color() 89 color = 1; in get_color() 92 color = 3; in get_color() 99 color &= 7; in get_color() [all …]
|
/DragonOS-0.1.9/tools/debugging/logmonitor/ |
D | Cargo.toml | 12 clap = { version = "4.4.7", features = ["color", "error-context", "help", "std", "suggestions", "us…
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | rbtree.rs | 35 color: Color, field 56 write!(f, "k:{:?} v:{:?} c:{:?}", self.key, self.value, self.color) in fmt() 95 color: Color::Black, in new() 106 fn set_color(&mut self, color: Color) { in set_color() 111 (*self.0).color = color; in set_color() 130 unsafe { (*self.0).color } in get_color() 138 unsafe { (*self.0).color == Color::Red } in is_red_color() 146 unsafe { (*self.0).color == Color::Black } in is_black_color() 1302 let color; in delete() localVariable 1324 color = replace.get_color(); in delete() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/ |
D | mod.rs | 342 for (idx, color) in cmap.iter().enumerate() { in set_color_map() 344 .fb_set_color_register(idx as u16, color.red, color.green, color.blue) in set_color_map() 504 pub color: u32, field 511 pub fn new(dx: u32, dy: u32, width: u32, height: u32, color: u32, rop: FillRectROP) -> Self { in new() 517 color, in new()
|
/DragonOS-0.1.9/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.1.md | 109 * debug color problem
|
/DragonOS-0.1.9/kernel/src/libs/lib_ui/ |
D | textui.rs | 335 pub fn put_color_in_pixel(&mut self, color: u32, index: usize) { in put_color_in_pixel() 337 buf[index] = color; in put_color_in_pixel()
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/ |
D | vesafb.rs | 397 fg = self.fb_data.read().pesudo_palette[rect.color as usize]; in fb_fillrect() 399 fg = rect.color; in fb_fillrect()
|