After commit c018f5fd29 Fenrir is being switched over to go. If you do not want to be part of the testing process, please switch to master.

This commit is contained in:
Storm Dragon committed 2026-10-27 20:30:55 -04:00
1 parent c018f5fd29
commit 0e50de4c76
1047 files changed
+58364 -63747

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
// Copyright (c) 2026 Storm Dragon
// SPDX-License-Identifier: GPL-3.0-or-later
package screen
// Colors are RGB, tagged ANSI palette indices, or the terminal default.
const (
ColorDefault uint32 = 1 << 31
ColorIndexed uint32 = 1 << 30
Bold uint32 = 1
Underline uint32 = 6 // libvterm retains single/double/curly underline.
Italic uint32 = 8
Blink uint32 = 16
Reverse uint32 = 32
Strike uint32 = 64
// VCSA high bit can mean blink, background intensity or a font bit. Keep
// it for change/highlight detection without claiming a specific style.
ConsoleHigh uint32 = 128
)
func (a Attribute) Default() bool {
return a.Style == 0 && (a.Foreground == ColorDefault || a.Foreground == ColorIndexed|7) &&
(a.Background == ColorDefault || a.Background == ColorIndexed)
}