Skip to content

Commit

Permalink
Fix kitty protocol implementation
Browse files Browse the repository at this point in the history
- Improved the issue where some output was missing in kitty.
  • Loading branch information
lusingander committed Jan 12, 2025
1 parent 461b37f commit 97d08d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ fn kitty_encode(bytes: &[u8], cell_width: usize, cell_height: usize) -> String {
let chunks = base64_str.as_bytes().chunks(chunk_size);
let total_chunks = chunks.len();

s.push_str("\x1b_Ga=d,d=C;\x1b\\");
for (i, chunk) in chunks.enumerate() {
s.push_str("\x1b_Ga=d,d=C;\x1b\\");
s.push_str("\x1b_G");
if i == 0 {
s.push_str(&format!("a=T,f=100,c={},r={},", cell_width, cell_height));
Expand Down

0 comments on commit 97d08d0

Please sign in to comment.