Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/uu/stty/src/stty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,14 @@ fn print_terminal_size(
);
}

#[cfg(any(target_os = "linux", target_os = "redox"))]
{
let line = termios.line_discipline;
printer.print(&translate!("stty-output-line", "line" => line));
}
#[cfg(any(
target_os = "android",
target_os = "fuchsia",
target_os = "haiku",
target_os = "linux",
target_os = "redox"
))]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please use the same cfg list in apply_special_setting for line N? it is still linux/android only there (and the comment still says nix)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, it is actually using nix. We need to switch to rustix at 1st.

printer.print(&translate!("stty-output-line", "line" => termios.line_discipline));
printer.flush();
}

Expand Down
Loading