Files
sshtermy/third_party/vt/dcs.go
T
db9979andClaude Opus 5.5 2513a7818d MIT-Lizenz, weniger Speicher pro Tab, schnellere Ausgabe und Manager (#47)
* MIT-Lizenz; Terminal-Verlauf kompakt, schnellerer Bildlauf, Manager mit vielen Verbindungen schneller

- LICENSE (MIT), winget/Homebrew/apt-Metadaten, README, Webseite, --version
- termemu: Verlauf mit 8 statt 112 Byte pro Zeichen, Ringpuffer
- third_party/vt: angepasste Kopie (rotateLines, SetScrollbackHook)
- Store: Connections() zwischengespeichert; Manager: buildRows ohne Teillisten,
  Fußzeile misst Breiten einmal
- Benchmarks: make bench

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUjBAAPCAZVnGzCZxdS

* Testprogramm aus dem Commit entfernt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUjBAAPCAZVnGzCZxdS

* Testprogramm entfernt, *.test ignorieren

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUjBAAPCAZVnGzCZxdS

* TestSerialSession: auf stehenden Prompt warten statt auf das erste #

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUjBAAPCAZVnGzCZxdS

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 10:02:26 +01:00

36 lines
1.1 KiB
Go

package vt
import "github.com/charmbracelet/x/ansi"
// handleDcs handles a DCS escape sequence.
func (e *Emulator) handleDcs(cmd ansi.Cmd, params ansi.Params, data []byte) {
e.flushGrapheme() // Flush any pending grapheme before handling DCS sequences.
if !e.handlers.handleDcs(cmd, params, data) {
e.logf("unhandled sequence: DCS %q %q", paramsString(cmd, params), data)
}
}
// handleApc handles an APC escape sequence.
func (e *Emulator) handleApc(data []byte) {
e.flushGrapheme() // Flush any pending grapheme before handling APC sequences.
if !e.handlers.handleApc(data) {
e.logf("unhandled sequence: APC %q", data)
}
}
// handleSos handles an SOS escape sequence.
func (e *Emulator) handleSos(data []byte) {
e.flushGrapheme() // Flush any pending grapheme before handling SOS sequences.
if !e.handlers.handleSos(data) {
e.logf("unhandled sequence: SOS %q", data)
}
}
// handlePm handles a PM escape sequence.
func (e *Emulator) handlePm(data []byte) {
e.flushGrapheme() // Flush any pending grapheme before handling PM sequences.
if !e.handlers.handlePm(data) {
e.logf("unhandled sequence: PM %q", data)
}
}