mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
11 lines
566 B
Rust
11 lines
566 B
Rust
--- src/ui/image_backends/sixel.rs.orig 2021-07-13 09:57:28 UTC
|
|
+++ src/ui/image_backends/sixel.rs
|
|
@@ -74,7 +74,7 @@ impl super::ImageBackend for SixelBackend {
|
|
fn add_image(&self, lines: Vec<String>, image: &DynamicImage, colors: usize) -> 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 cw = tty_size.ws_xpixel / tty_size.ws_col;
|