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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- A Chromium-family browser on Linux or macOS for the real engine (`BILTERM_CHROME_PATH` overrides discovery). Without one the placeholder engine is used and the status line says so.

### Fixed
- **Control sequences split across PTY reads**: the side scanner that handles what the VT engine does not (OSC 0/7/8/9/52/133/777/1337, DECSET flags, Kitty keyboard, DECRQSS/XTGETTCAP, Sixel, Kitty graphics, DEC line size, Tektronix entry) is now a stateful framer (`src/vt/framer.rs`). A sequence cut by a read boundary is handled exactly as if it arrived whole; previously only OSC 52 survived a split, and a split Sixel or Kitty image printed its payload on the grid.
- **Scanner cost**: each output byte is consumed once. A long unterminated OSC 52 fed in small reads, and many unterminated OSCs in one read, were quadratic.
- **Sequence boundaries**: a title or notification now ends at its own terminator instead of at a later `BEL`; `CSI 6n` and image placements use the cursor position at the sequence, not at the end of the read; `CSI ?38h` no longer swallows earlier sequences that shared its read.
- **Bounded carry**: an unterminated `CSI` (256 bytes), `OSC` (1 MiB + 64), `APC` (Kitty payload limit + 4 KiB) or `DCS` (4 MiB) is dropped whole at its limit and the rest is skipped without being stored.
- **Remote tmux link (`:ssh-tmux`) rendering**: the remote tmux client is now as large as the linked pane instead of the whole Bilterm window (full-screen programs and wrapped lines drew in the wrong place); a hydrate restores alternate screen, cursor position and visibility, application cursor keys and mouse modes (re-attaching while `vim` ran left the cursor in the wrong place and stale rows on the primary screen); a UTF-8 character split across two `%output` lines is no longer turned into replacement characters; `%extended-output` is understood.
- **Remote tmux link flooding**: Bilterm asks tmux for `pause-after` flow control and re-captures a paused pane, so a flooding remote pane no longer starves input (Ctrl-C typed in Bilterm now arrives).
- **Remote tmux link input**: a paste larger than 4096 bytes was silently truncated; pastes are now delivered complete and in order.
Expand Down
3 changes: 2 additions & 1 deletion docs/DEVELOPER_AND_AGENT_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ src/
β”œβ”€β”€ vt/
β”‚ β”œβ”€β”€ mod.rs # VtParser state machine, CommandBlock tracking, scrollback & size management
β”‚ β”œβ”€β”€ backend.rs # TerminalBackend port trait, MockTerminalBackend, and conformance suite (ARCH-R03)
β”‚ β”œβ”€β”€ scan.rs # Single-pass ESC (\x1b) stream pre-scanner (DECSET traps, CSI DECRPM/DA1/DSR)
β”‚ β”œβ”€β”€ framer.rs # Stateful control-sequence framer in front of the engine: split-safe, linear, bounded carry
β”‚ β”œβ”€β”€ scan.rs # Framed-chunk dispatch to the engine + CSI handlers (DECSET traps, DECRPM/DA1/DSR, SGR)
β”‚ β”œβ”€β”€ scan_osc_dcs.rs # OSC 7/8/9/52/133/777/1337, DCS XTGETTCAP/Sixel & APC Kitty scanners
β”‚ β”œβ”€β”€ graphics.rs # Kitty Graphics (APC G) & DEC Sixel (DCS q) decoders and placements
β”‚ β”œβ”€β”€ tektronix.rs # Tektronix 4010/4014 10-bit/12-bit vector storage-tube state machine & phosphor decay
Expand Down
8 changes: 4 additions & 4 deletions src/pane/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,8 @@ impl CompositePane {
self.mirror_output_tap(bytes);
self.vt.process(bytes);
self.drain_osc52_decoded();
self.canvas_scene
.scan_osc_canvas_sequences(self.vt.tektronix_mut(), bytes);
self.vt
.drain_canvas_osc(|tek, seq| self.canvas_scene.scan_osc_canvas_sequences(tek, seq));
if let Some(wt) = self.vt.window_title() {
self.title = format!("{wt} [#{}]", self.id);
}
Expand Down Expand Up @@ -878,8 +878,8 @@ impl CompositePane {
self.mirror_output_tap(&coalesced);
self.vt.process(&coalesced);
self.drain_osc52_decoded();
self.canvas_scene
.scan_osc_canvas_sequences(self.vt.tektronix_mut(), &coalesced);
self.vt
.drain_canvas_osc(|tek, seq| self.canvas_scene.scan_osc_canvas_sequences(tek, seq));
if let Some(wt) = self.vt.window_title() {
self.title = format!("{wt} [#{}]", self.id);
}
Expand Down
Loading
Loading