blob: c8ce5936d1e3af5d69d7c2ceff1e8379f89867a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/ui/image_backends/iterm.rs.orig 2021-07-13 09:56:48 UTC
+++ src/ui/image_backends/iterm.rs
@@ -27,7 +27,7 @@ impl super::ImageBackend for ITermBackend {
) -> Result<String> {
let tty_size = unsafe {
let tty_size: winsize = std::mem::zeroed();
- ioctl(STDOUT_FILENO, TIOCGWINSZ, &tty_size);
+ ioctl(STDOUT_FILENO, TIOCGWINSZ.into(), &tty_size);
tty_size
};
let width_ratio = f64::from(tty_size.ws_col) / f64::from(tty_size.ws_xpixel);
|