mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-22 15:23:23 +00:00
完善pty,目前pty能够支持ssh (#708)
This commit is contained in:
@ -27,7 +27,7 @@ use crate::{
|
||||
};
|
||||
|
||||
use super::{
|
||||
termios::Termios,
|
||||
termios::{Termios, WindowSize},
|
||||
tty_core::{TtyCore, TtyCoreData},
|
||||
tty_ldisc::TtyLdiscManager,
|
||||
tty_port::{DefaultTtyPort, TtyPort},
|
||||
@ -273,7 +273,7 @@ impl TtyDriver {
|
||||
tty.set_port(ports[core.index()].clone());
|
||||
}
|
||||
|
||||
TtyLdiscManager::ldisc_setup(tty.clone(), None)?;
|
||||
TtyLdiscManager::ldisc_setup(tty.clone(), tty.core().link())?;
|
||||
|
||||
Ok(tty)
|
||||
}
|
||||
@ -445,6 +445,8 @@ pub trait TtyOperation: Sync + Send + Debug {
|
||||
}
|
||||
|
||||
fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>;
|
||||
|
||||
fn resize(&self, _tty: Arc<TtyCore>, _winsize: WindowSize) -> Result<(), SystemError>;
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
Reference in New Issue
Block a user