mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-06 20:54:09 +01:00
- Befehle ab 10 s in verdeckten Tabs markieren den Tab (✓/×) und melden sich; Fenster im Hintergrund: Desktop-Benachrichtigung (internal/notify). Glocke (BEL) markiert den Tab ebenfalls. - Agent-Weiterleitung pro Verbindung (wie ssh -A), nur lesend, ein Dial je Anfrage (sshx/agentfwd.go). log-Ausgabe der Bibliotheken abgeschaltet. - OSC 52: Server kann in die lokale Zwischenablage schreiben, nie lesen. - Bildschirmsperre: Jetzt sperren / automatisch bei Leerlauf, auch mit offenen Sitzungen (Store bleibt offen, Passwort per Vault.CheckPassword). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUg3JYqSEpKKGWcx782
25 lines
568 B
Go
25 lines
568 B
Go
package notify
|
|
|
|
import "testing"
|
|
|
|
func TestClean(t *testing.T) {
|
|
if got := clean("a\nb\x1b[31m c", 50); got != "a b [31m c" {
|
|
t.Fatalf("clean = %q", got)
|
|
}
|
|
if got := clean("äöüäöü", 4); got != "äöü…" {
|
|
t.Fatalf("kürzen = %q", got)
|
|
}
|
|
}
|
|
|
|
func TestQuote(t *testing.T) {
|
|
if got := quoteAS(`say "hi" \o/`); got != `"say \"hi\" \\o/"` {
|
|
t.Fatalf("AppleScript = %s", got)
|
|
}
|
|
if got := quotePS("it's"); got != "'it''s'" {
|
|
t.Fatalf("PowerShell = %s", got)
|
|
}
|
|
if got := xmlEscape("<a&b>"); got != "<a&b>" {
|
|
t.Fatalf("XML = %s", got)
|
|
}
|
|
}
|