mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-09-30 12:39:42 +02:00
feat: integrate xterm-zerolag-input library into Claudeman app.js
Replace the embedded 348-line LocalEchoOverlay class with the standalone xterm-zerolag-input library (inlined as ZerolagInputAddon). A bridge class `LocalEchoOverlay extends ZerolagInputAddon` preserves the constructor API so existing `new LocalEchoOverlay(terminal)` call works. All 43+ private property accesses (_flushedOffset, _bufferDetectDone, _lastRenderKey, _render(), _detectBufferText(), etc.) replaced with public library methods: - Backspace: 60-line 3-branch handler → removeChar() returning 'pending'|'flushed'|false + Map sync - Tab completion: _bufferDetectDone/_detectBufferText/_flushedOffset → resetBufferDetection()/detectBufferText()/undoDetection()/rerender() - Tab switch save: _flushedOffset/_flushedText reads → getFlushed() - Tab switch restore: direct assignments → setFlushed(n, t, false) - Buffer detection guard: _bufferDetectDone=true → suppressBufferDetection() - Resize re-render: _lastRenderKey='';rerender() → rerender() - Post-load render: _lastRenderKey='';_render() → rerender() Verified with 9 Playwright integration tests + manual testing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Generated
+410
-652
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user