File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -688,12 +688,9 @@ fn print_terminal_size(
688688 ) ;
689689 }
690690
691- #[ cfg( any( target_os = "linux" , target_os = "redox " ) ) ]
691+ #[ cfg( any( target_os = "linux" , target_os = "android" , target_os = "haiku ") ) ]
692692 {
693- // For some reason the normal nix Termios struct does not expose the line,
694- // so we get the underlying libc::termios struct to get that information.
695- let libc_termios: nix:: libc:: termios = termios. clone ( ) . into ( ) ;
696- let line = libc_termios. c_line ;
693+ let line = termios. line_discipline ;
697694 printer. print ( & translate ! ( "stty-output-line" , "line" => line) ) ;
698695 }
699696 printer. flush ( ) ;
@@ -1056,7 +1053,7 @@ fn apply_special_setting(
10561053 ) ]
10571054 SpecialSetting :: Line ( n) => {
10581055 // nix only defines Termios's `line_discipline` field on these platforms
1059- #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
1056+ #[ cfg( any( target_os = "linux" , target_os = "android" , target_os = "haiku" ) ) ]
10601057 {
10611058 _termios. line_discipline = * n;
10621059 }
You can’t perform that action at this time.
0 commit comments