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 CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- add `window.opacity` for a transparent background (compositor-dependent)

### Fixed
- accept OSC 52 clipboard payloads larger than 1 KiB; copying long text over SSH no longer fails silently
- honour SGR colon subparameters: `4:0` now turns underline off (was leaving the whole screen underlined) and `38:2:r:g:b` / `48:5:n` colours are applied

## [0.10.0] - 2026-07-25
Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ softbuffer = "0.4"
fontdue = "0.9"

# ANSI/VT escape code parser
vte = "0.13"
# default-features = false swaps vte's fixed 1 KiB ArrayVec OSC buffer for a
# growable Vec, so large OSC 52 clipboard payloads are not truncated.
vte = { version = "0.13", default-features = false }

# PTY backend (Linux/macOS: forkpty/posix_openpt)
portable-pty = "0.9"
Expand Down
16 changes: 16 additions & 0 deletions src/terminal/parser_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,22 @@ fn osc52_write_with_st_terminator() {
assert_eq!(p.grid.pending_clipboard_write.as_deref(), Some("hello"));
}

#[test]
fn osc52_write_handles_payload_larger_than_1kb() {
let mut p = make_parser(80, 24);
// ~1 KB of text -> ~1.3 KB of base64, past vte's 1024-byte OSC buffer
let text = "x".repeat(981);
let encoded = BASE64.encode(text.as_bytes());
let mut seq = b"\x1b]52;c;".to_vec();
seq.extend_from_slice(encoded.as_bytes());
seq.extend_from_slice(b"\x07");
p.process(&seq);
assert_eq!(
p.grid.pending_clipboard_write.as_deref(),
Some(text.as_str())
);
}

#[test]
fn dec_line_drawing_box_chars() {
let mut p = make_parser(80, 24);
Expand Down