Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 9 of 9) sorted by relevance

/DragonOS/kernel/src/libs/font/
H A Dmod.rs35 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 Dkeyboard_parser.rs258 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 Dvirtual_console.rs1260 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 Dmod.rs392 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 Dtty_core.rs505 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 Dconsole.rs49 ch: u16, in con_putc()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs144 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 Dserial8250_pio.rs380 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 Dntty.rs1338 EchoOperation::Undefined(ch) => { in echoes()
1339 match ch { in echoes()
1361 if tty.put_char(tty.core(), ch ^ 0o100).is_err() { in echoes()
1362 tty.write(core, &[ch ^ 0o100], 1)?; in echoes()