Implement PTY-native session terminal control
This commit is contained in:
parent
058e58e816
commit
8cef037fa3
1 changed files with 1488 additions and 382 deletions
|
|
@ -288,6 +288,35 @@ fn session_id() -> SessionId {
|
|||
SessionId::new(opaque(5))
|
||||
}
|
||||
|
||||
fn terminal_modes_v2() -> TerminalModesV2 {
|
||||
TerminalModesV2 {
|
||||
input_modes: 1,
|
||||
output_modes: 2,
|
||||
control_modes: 3,
|
||||
local_modes: 4,
|
||||
line_discipline: 0,
|
||||
input_speed: 38_400,
|
||||
output_speed: 38_400,
|
||||
interrupt: 3,
|
||||
quit: 28,
|
||||
erase: 127,
|
||||
kill: 21,
|
||||
eof: 4,
|
||||
time: 0,
|
||||
minimum: 1,
|
||||
switch: 0,
|
||||
start: 17,
|
||||
stop: 19,
|
||||
suspend: 26,
|
||||
end_of_line: 0,
|
||||
reprint: 18,
|
||||
discard: 15,
|
||||
word_erase: 23,
|
||||
literal_next: 22,
|
||||
end_of_line_2: 0,
|
||||
}
|
||||
}
|
||||
|
||||
fn process(seed: u32) -> PidfsProcessIdentityV1 {
|
||||
PidfsProcessIdentityV1::new(
|
||||
PidfsProcessAuthorityV1 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue