Skip to content

Commit

Permalink
don't send DECERA for sixels
Browse files Browse the repository at this point in the history
until we get sixel transparency anyway
  • Loading branch information
benjajaja committed Dec 6, 2024
1 parent 8ff4ebe commit 16210b4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/protocol/sixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ fn render(rect: Rect, data: &str, area: Rect, buf: &mut Buffer, overdraw: bool)
Some(r) => r,
};

let top = render_area.top() + 1;
let left = render_area.left();
let bottom = render_area.bottom() + 1;
let right = render_area.right();
let seq = format!("\x1b[{top};{left};{bottom};{right}$z{data}");
buf.cell_mut(render_area).map(|cell| cell.set_symbol(&seq));
// DECERA
// let top = render_area.top() + 1;
// let left = render_area.left() + 1;
// let bottom = render_area.bottom() + 1;
// let right = render_area.right() + 1;
// let seq = format!("\x1b[{top};{left};{bottom};{right}$z{data}");
buf.cell_mut(render_area).map(|cell| cell.set_symbol(data));
let mut skip_first = false;

// Skip entire area
Expand Down

0 comments on commit 16210b4

Please sign in to comment.