diff options
author | Canop <cano.petrole@gmail.com> | 2022-01-05 21:27:39 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-01-05 21:27:39 +0100 |
commit | 0b15aede22d52d1f3a0fdf74e2e70ce4cd349f29 (patch) | |
tree | fb19431dbf24e04c60147a64306c87b7554b6338 /src/display | |
parent | c6871fef4b9b00a4876fff0e050a7c546372eeba (diff) |
images rendered with kitty protocol on wezterm
It's experimental and might be removed as wezterm
doesn't seem to support image resizing
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/cell_size.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/display/cell_size.rs b/src/display/cell_size.rs index 29685dd..bb259ef 100644 --- a/src/display/cell_size.rs +++ b/src/display/cell_size.rs @@ -44,3 +44,11 @@ pub fn cell_size_in_pixels() -> std::io::Result<(u32, u32)> { } } +#[cfg(not(unix))] +pub fn cell_size_in_pixels() -> std::io::Result<(u32, u32)> { + // there's probably a way but I don't know it + Err(std::io::Error::new( + std::io::ErrorKind::Other, + "fetching cell size isn't supported on Windows", + )) +} |