/DragonOS/user/apps/dmesg/ |
H A 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/kernel/src/driver/tty/virtual_terminal/ |
H A D | virtual_console.rs | 292 for (idx, color) in self.palette.iter_mut().enumerate() { in reset_palette() 293 color.red = DEFAULT_RED[idx]; in reset_palette() 294 color.green = DEFAULT_GREEN[idx]; in reset_palette() 295 color.blue = DEFAULT_BLUE[idx]; in reset_palette() 1066 let (idx, color) = self.t416_color(i); in csi_m() 1068 if let Some(color) = color { in csi_m() 1069 let mut max = color.red.max(color.green); in csi_m() 1070 max = max.max(color.blue); in csi_m() 1073 if color.red > max / 2 { in csi_m() 1076 if color.green > max / 2 { in csi_m() [all …]
|
H A D | mod.rs | 254 let mut color = Self::default(); in from_256() localVariable 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() 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() 264 color.red = ((col - 16) / 36 * 85 / 2) as u16; in from_256() 265 color.green = ((col - 16) / 6 % 6 * 85 / 2) as u16; in from_256() 266 color.blue = ((col - 16) % 6 * 85 / 2) as u16; in from_256() [all …]
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | render_helper.rs | 96 let mut color = self.read_bit() << (self.left_byte << 3); in full_buffer() localVariable 110 temp = color & mask; in full_buffer() 111 color <<= 8; in full_buffer() 122 color = self.read_bit(); in full_buffer()
|
H A D | mod.rs | 328 for (idx, color) in cmap.iter().enumerate() { in set_color_map() 330 .fb_set_color_register(idx as u16, color.red, color.green, color.blue) in set_color_map() 491 pub color: u32, field 498 pub fn new(dx: u32, dy: u32, width: u32, height: u32, color: u32, rop: FillRectROP) -> Self { in new() 504 color, in new()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 50 let mut color = 0; in get_color() localVariable 57 color = (c as u32 >> fg_shift) & 0x0f in get_color() 60 color = (c as u32 >> bg_shift) & 0x0f in get_color() 76 color = if is_fg { fg } else { bg }; in get_color() 85 if (1..=6).contains(&color) { in get_color() 87 color = 2; in get_color() 88 } else if (7..=8).contains(&color) { in get_color() 90 color = 1; in get_color() 93 color = 3; in get_color() 100 color &= 7; in get_color() [all …]
|
/DragonOS/tools/debugging/logmonitor/ |
H A D | Cargo.toml | 12 clap = { version = "4.4.7", features = ["color", "error-context", "help", "std", "suggestions", "us…
|
/DragonOS/kernel/src/libs/ |
H A 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() 1301 let color; in delete() localVariable 1321 color = replace.get_color(); in delete() [all …]
|
/DragonOS/kernel/src/libs/lib_ui/ |
H A D | textui.rs | 340 pub fn put_color_in_pixel(&mut self, color: u32, index: usize) { in put_color_in_pixel() 346 *buf.offset(index) = color; in put_color_in_pixel() 352 copy_nonoverlapping(&color as *const u32 as *const u8, buf.offset(index * 3), 3) in put_color_in_pixel() 359 &color as *const u32 as *const u8, in put_color_in_pixel() 496 let color: u32 = self.frcolor.into(); in no_init_textui_render_chromatic() localVariable 499 &color as *const u32 as *const u8, in no_init_textui_render_chromatic() 505 let color: u32 = self.bkcolor.into(); in no_init_textui_render_chromatic() localVariable 508 &color as *const u32 as *const u8, in no_init_textui_render_chromatic()
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.1.md | 109 * debug color problem
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 395 self.fb_data.read().pesudo_palette[rect.color as usize] in fb_fillrect() 397 rect.color in fb_fillrect()
|
/DragonOS/kernel/crates/rbpf/ |
H A D | README.md | 4 <source media="(prefers-color-scheme: dark)" srcset="misc/rbpf_256_border.png">
|