mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-06 12:44:08 +01:00
* 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>
19 lines
432 B
Go
19 lines
432 B
Go
package vt
|
|
|
|
import (
|
|
uv "github.com/charmbracelet/ultraviolet"
|
|
)
|
|
|
|
// eraseCharacter erases n characters starting from the cursor position. It
|
|
// does not move the cursor. This is equivalent to [ansi.ECH].
|
|
func (e *Emulator) eraseCharacter(n int) {
|
|
if n <= 0 {
|
|
n = 1
|
|
}
|
|
x, y := e.scr.CursorPosition()
|
|
rect := uv.Rect(x, y, n, 1)
|
|
e.scr.FillArea(e.scr.blankCell(), rect)
|
|
e.atPhantom = false
|
|
// ECH does not move the cursor.
|
|
}
|