We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096d6e8 commit 6c4e055Copy full SHA for 6c4e055
src/sys/termios.rs
@@ -793,6 +793,18 @@ pub fn cfmakeraw(termios: &mut Termios) {
793
termios.update_wrapper();
794
}
795
796
+/// Configures the port to "sane" mode (like the configuration of a newly created terminal).
797
+///
798
+/// Note that this is a non-standard function, available on FreeBSD.
799
+#[cfg(target_os = "freebsd")]
800
+pub fn cfmakesane(termios: &mut Termios) {
801
+ let inner_termios = unsafe { termios.get_libc_termios_mut() };
802
+ unsafe {
803
+ libc::cfmakesane(inner_termios);
804
+ }
805
+ termios.update_wrapper();
806
+}
807
+
808
/// Set input baud rate (see
809
/// [cfsetispeed(3p)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/cfsetispeed.html)).
810
///
0 commit comments