dev: DeviceRequest::ConfigureTerminal for combined tty
This commit is contained in:
parent
a530a34a09
commit
639f13eda4
@ -93,6 +93,7 @@ pub mod combined {
|
||||
self.set_signal_group(id as _);
|
||||
Ok(())
|
||||
}
|
||||
DeviceRequest::ConfigureTerminal(config) => self.context.set_config(config),
|
||||
_ => Err(Error::InvalidArgument),
|
||||
}
|
||||
}
|
||||
@ -286,6 +287,11 @@ impl TtyContext {
|
||||
pub async fn getc(&self) -> u8 {
|
||||
self.ring.read().await
|
||||
}
|
||||
|
||||
pub fn set_config(&self, config: &TerminalOptions) -> Result<(), Error> {
|
||||
self.inner.lock().config = config.clone();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
// impl<const N: usize> CharRingInner<N> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user