Skip to content

Commit b1d9c22

Browse files
authored
Merge pull request #186 from o2sh/feature/async-await
async get_info_lines
2 parents 675c5c0 + 1160e88 commit b1d9c22

File tree

7 files changed

+260
-113
lines changed

7 files changed

+260
-113
lines changed

Cargo.lock

Lines changed: 134 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ strum = "0.18.0"
2929
strum_macros = "0.18.0"
3030
image = "0.22.3"
3131
regex = "1"
32+
futures = "0.3.5"
3233

3334
[target.'cfg(windows)'.dependencies]
3435
ansi_term = "0.12"

src/image_backends/kitty.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
use image::{imageops::FilterType, DynamicImage, GenericImageView};
2-
use libc::{
3-
c_void, ioctl, poll, pollfd, read, tcgetattr, tcsetattr, termios, winsize, ECHO, ICANON,
4-
POLLIN, STDIN_FILENO, STDOUT_FILENO, TCSANOW, TIOCGWINSZ,
1+
use {
2+
image::{imageops::FilterType, DynamicImage, GenericImageView},
3+
libc::{
4+
c_void, ioctl, poll, pollfd, read, tcgetattr, tcsetattr, termios, winsize, ECHO, ICANON,
5+
POLLIN, STDIN_FILENO, STDOUT_FILENO, TCSANOW, TIOCGWINSZ,
6+
},
7+
std::time::Instant,
58
};
6-
use std::time::Instant;
79

810
pub struct KittyBackend {}
911

src/image_backends/sixel.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
use image::{
2-
imageops::{colorops, FilterType},
3-
math::nq::NeuQuant,
4-
DynamicImage, GenericImageView, ImageBuffer, Pixel, Rgb,
1+
use {
2+
image::{
3+
imageops::{colorops, FilterType},
4+
math::nq::NeuQuant,
5+
DynamicImage, GenericImageView, ImageBuffer, Pixel, Rgb,
6+
},
7+
libc::{
8+
c_void, ioctl, poll, pollfd, read, tcgetattr, tcsetattr, termios, winsize, ECHO, ICANON,
9+
POLLIN, STDIN_FILENO, STDOUT_FILENO, TCSANOW, TIOCGWINSZ,
10+
},
11+
std::time::Instant,
512
};
6-
use libc::{
7-
c_void, ioctl, poll, pollfd, read, tcgetattr, tcsetattr, termios, winsize, ECHO, ICANON,
8-
POLLIN, STDIN_FILENO, STDOUT_FILENO, TCSANOW, TIOCGWINSZ,
9-
};
10-
use std::time::Instant;
1113

1214
pub struct SixelBackend {}
1315

0 commit comments

Comments
 (0)