/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | ntty.rs | 12 termios::{ControlCharIndex, InputMode, LocalMode, OutputMode, Termios}, 180 let termios = tty.core().termios(); in receive_buf_common() localVariable 189 if termios.input_mode.contains(InputMode::PARMRK) { in receive_buf_common() 242 let termios = tty.core().termios(); in receive_buf() localVariable 243 let preops = termios.input_mode.contains(InputMode::ISTRIP) in receive_buf() 244 || termios.input_mode.contains(InputMode::IUCLC) in receive_buf() 245 || termios.local_mode.contains(LocalMode::IEXTEN); in receive_buf() 250 } else if self.raw || (termios.local_mode.contains(LocalMode::EXTPROC) && !preops) { in receive_buf() 252 } else if tty.core().is_closing() && !termios.local_mode.contains(LocalMode::EXTPROC) { in receive_buf() 271 if self.icanon && !termios.local_mode.contains(LocalMode::EXTPROC) { in receive_buf() [all …]
|
H A D | mod.rs | 9 termios::Termios,
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_core.rs | 27 termios::{ControlMode, PosixTermios, Termios, TtySetTermiosOpt, WindowSize}, 58 let termios = driver.init_termios(); in new() localVariable 61 termios: RwLock::new(termios), in new() 181 let termios = PosixTermios::from_kernel_termios(*real_tty.core.termios()); in tty_mode_ioctl() localVariable 188 user_writer.copy_one_to_user(&termios, 0)?; in tty_mode_ioctl() 218 let mut tmp_termios = *tty.core().termios(); in core_set_termios() 249 let mut termios = tty.core().termios_write(); in set_termios_next() localVariable 251 let old_termios = *termios; in set_termios_next() 252 *termios = new_termios; in set_termios_next() 253 let tmp = termios.control_mode; in set_termios_next() [all …]
|
H A D | termios.rs | 54 pub fn from_kernel_termios(termios: Termios) -> Self { in from_kernel_termios() 56 c_iflag: termios.input_mode.bits, in from_kernel_termios() 57 c_oflag: termios.output_mode.bits, in from_kernel_termios() 58 c_cflag: termios.control_mode.bits, in from_kernel_termios() 59 c_lflag: termios.local_mode.bits, in from_kernel_termios() 60 c_cc: termios.control_characters, in from_kernel_termios() 61 c_line: termios.line as u8, in from_kernel_termios() 62 c_ispeed: termios.input_speed, in from_kernel_termios() 63 c_ospeed: termios.output_speed, in from_kernel_termios()
|
H A D | mod.rs | 7 pub mod termios; module
|
H A D | tty_driver.rs | 36 termios::{Termios, WindowSize},
|
H A D | tty_device.rs | 46 termios::WindowSize,
|
/DragonOS/user/apps/test_pty/ |
H A D | test_pty.c | 12 struct termios term; in main()
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | unix98pty.rs | 6 termios::{ControlCharIndex, ControlMode, InputMode, LocalMode, Termios}, 117 let curr_termios = *core.termios(); in set_termios() 233 winsize: crate::driver::tty::termios::WindowSize, in resize()
|
H A D | mod.rs | 23 termios::{ControlMode, InputMode, LocalMode, OutputMode, TTY_STD_TERMIOS},
|
/DragonOS/kernel/src/driver/serial/ |
H A D | mod.rs | 11 termios::{ControlMode, InputMode, LocalMode, OutputMode, Termios, INIT_CONTORL_CHARACTERS},
|
/DragonOS/kernel/src/driver/video/console/ |
H A D | dummycon.rs | 6 termios::WindowSize,
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | mod.rs | 29 termios::{InputMode, TTY_STD_TERMIOS}, 409 _winsize: super::termios::WindowSize, in resize()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | serial8250_pio.rs | 24 termios::WindowSize,
|