Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rscarson committed May 5, 2024
1 parent c5d528c commit 736df13
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ext/io/tty_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,6 @@ pub struct ConsoleSize {
pub rows: u32,
}

pub fn console_size(std_file: &std::fs::File) -> Result<ConsoleSize, std::io::Error> {
use std::os::unix::io::AsRawFd;
let fd = std_file.as_raw_fd();
console_size_from_fd(fd)
}

fn console_size_from_fd(fd: std::os::unix::prelude::RawFd) -> Result<ConsoleSize, std::io::Error> {
// SAFETY: libc calls
unsafe {
Expand Down

0 comments on commit 736df13

Please sign in to comment.