Searched refs:ch (Results 1 – 9 of 9) sorted by relevance
/DragonOS/kernel/src/libs/font/ |
H A D | mod.rs | 35 pub fn is_double_width(ch: u32) -> bool { in is_double_width() 36 if ch < Self::DOUBLE_WIDTH_RANGE.first().unwrap().0 in is_double_width() 37 || ch > Self::DOUBLE_WIDTH_RANGE.last().unwrap().1 in is_double_width() 43 if ch >= *first && ch < *last { in is_double_width()
|
/DragonOS/kernel/src/libs/ |
H A D | keyboard_parser.rs | 258 let ch = b'/'; in handle_func0() localVariable 259 Self::emit(ch); in handle_func0() 342 let mut ch = TYPE1_KEY_CODE_MAPTABLE[col as usize + 2 * index as usize]; in handle_type3() localVariable 345 ch = Self::to_ctrl(ch, shift); in handle_type3() 347 Self::emit(ch); in handle_type3() 353 fn to_ctrl(ch: u8, shift: bool) -> u8 { in to_ctrl() 354 return match ch as char { in to_ctrl() 355 'a'..='z' => ch - 0x60, in to_ctrl() 358 ch in to_ctrl() 360 ch - 0x40 in to_ctrl() [all …]
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | virtual_console.rs | 1260 pub fn do_control(&mut self, ch: u32) { in do_control() 1262 if self.vc_state.is_ansi_control_string() && (8..=13).contains(&ch) { in do_control() 1266 match ch { in do_control() 1340 match ch as u8 as char { in do_control() 1406 let c = ch as u8 as char; in do_control() 1436 let c = ch as u8 as char; in do_control() 1445 if ch as u8 as char == '8' { in do_control() 1461 let c = ch as u8 as char; in do_control() 1476 if (20..=0x3f).contains(&ch) { in do_control() 1483 let c = ch as u8 as char; in do_control() [all …]
|
H A D | mod.rs | 392 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char() 393 self.write(tty, &[ch], 1)?; in put_char()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_core.rs | 505 let mut ch: u32 = 0; in do_write() localVariable 514 ch = buf[offset] as u32; in do_write() 519 let (tc, rescan_last) = vc_data_guard.translate(&mut ch); in do_write() 528 if vc_data_guard.is_control(tc, ch) { in do_write() 530 vc_data_guard.do_control(ch); in do_write() 534 if !vc_data_guard.console_write_normal(tc, ch, &mut draw) { in do_write() 571 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char() 572 return self.core().tty_driver.driver_funcs().put_char(tty, ch); in put_char()
|
H A D | console.rs | 49 ch: u16, in con_putc()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 144 let ch = char_item & charmask; in bit_put_string() localVariable 146 let font_offset = ch as usize * cellsize as usize; in bit_put_string() 294 ch: u16, in con_putc() 298 self.con_putcs(vc_data, &[ch], 1, ypos, xpos) in con_putc()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | serial8250_pio.rs | 380 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char() 381 self.write(tty, &[ch], 1).map(|_| ()) in put_char()
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | ntty.rs | 1340 EchoOperation::Undefined(ch) => { in echoes() 1341 match ch { in echoes() 1363 if tty.put_char(tty.core(), ch ^ 0o100).is_err() { in echoes() 1364 tty.write(core, &[ch ^ 0o100], 1)?; in echoes()
|