Skip to content

unix_term::terminal_size uses STDIN_FILENO for isatty instead of configured output #185

@tgolsson

Description

@tgolsson

For example;

console/src/unix_term.rs

Lines 49 to 51 in 0567bdc

if libc::isatty(libc::STDOUT_FILENO) != 1 {
return None;
}

Should likely use out.as_raw_fd() instead. I think the same issue might exist in a few other places in that file that don't currently take a Term at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions