Reset master to testing content

This commit is contained in:
Storm Dragon committed 2026-10-25 01:57:54 -04:00
1 parent 0f2587b719
commit 42afa2a56c
1483 files changed
+145308 -938069

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
// Cthulhu screen reader.
// Copyright (c) 2026 Storm Dragon
// Authors: Storm Dragon, Angus Kola
// SPDX-License-Identifier: GPL-3.0-or-later
package app
import "git.stormux.org/storm/cthulhu/internal/atspi"
func should_ignore_terminal_scrollback(event atspi.Event) bool {
// VTE can remove old complete lines at the start of its accessible text
// while appending output at a different offset. These are not edits to
// the prompt. This event pattern occurs on both X11 and Wayland.
return event.Type == atspi.TextDeletedEvent &&
event.Source.Role == "terminal" && event.Detail1 == 0 &&
event.Source.TextCaretKnown && event.Source.BrailleLineStart > 0 &&
event.TextChangeEndsLine && event.TextChangeLength > 0 &&
event.TextChangeLength <= event.Source.BrailleLineStart
}