Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::utils;

/// Configuration struct to customize printing behaviour.
#[derive(Debug, Clone)]
pub struct Config {
/// Enable true transparency instead of checkerboard background.
/// Available only for the block printer. Defaults to false.
Expand Down
1 change: 1 addition & 0 deletions src/printer/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const LOWER_HALF_BLOCK: &str = "\u{2584}";
const CHECKERBOARD_BACKGROUND_LIGHT: (u8, u8, u8) = (153, 153, 153);
const CHECKERBOARD_BACKGROUND_DARK: (u8, u8, u8) = (102, 102, 102);

#[derive(Debug)]
pub struct BlockPrinter;

impl Printer for BlockPrinter {
Expand Down
1 change: 1 addition & 0 deletions src/printer/icy_sixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use super::{adjust_offset, find_best_fit, Printer};
use icy_sixel::sixel_string;
use image::{imageops::FilterType, GenericImageView};

#[derive(Debug)]
pub struct IcySixelPrinter;

impl Printer for IcySixelPrinter {
Expand Down
1 change: 1 addition & 0 deletions src/printer/iterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use std::{
};

#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct iTermPrinter;

static ITERM_SUPPORT: LazyLock<bool> = LazyLock::new(check_iterm_support);
Expand Down
1 change: 1 addition & 0 deletions src/printer/kitty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use std::io::Write;
use std::sync::LazyLock;
use tempfile::NamedTempFile;

#[derive(Debug)]
pub struct KittyPrinter;

const TEMP_FILE_PREFIX: &str = ".tty-graphics-protocol.viuer.";
Expand Down
1 change: 1 addition & 0 deletions src/printer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ pub trait Printer {
}

#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy)]
pub enum PrinterType {
Block,
Kitty,
Expand Down
1 change: 1 addition & 0 deletions src/printer/sixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use sixel_rs::encoder::{Encoder, QuickFrameBuilder};
use sixel_rs::optflags::EncodePolicy;
use std::io::Write;

#[derive(Debug)]
pub struct SixelPrinter;

impl Printer for SixelPrinter {
Expand Down