diff --git a/ansicolors.go b/ansicolors.go index ee303e2..1a301b0 100644 --- a/ansicolors.go +++ b/ansicolors.go @@ -1,6 +1,6 @@ package termenv -// ANSI color codes +// ANSI color codes. const ( ANSIBlack ANSIColor = iota ANSIRed diff --git a/color.go b/color.go index 1a216e9..eb4f988 100644 --- a/color.go +++ b/color.go @@ -14,7 +14,7 @@ var ( ErrInvalidColor = errors.New("invalid color") ) -// Foreground and Background sequence codes +// Foreground and Background sequence codes. const ( Foreground = "38" Background = "48" diff --git a/profile.go b/profile.go index 607faba..d7b43c0 100644 --- a/profile.go +++ b/profile.go @@ -12,13 +12,13 @@ import ( type Profile int const ( - // TrueColor, 24-bit color profile + // TrueColor, 24-bit color profile. TrueColor = Profile(iota) - // ANSI256, 8-bit color profile + // ANSI256, 8-bit color profile. ANSI256 - // ANSI, 4-bit color profile + // ANSI, 4-bit color profile. ANSI - // Ascii, uncolored profile + // Ascii, uncolored profile. Ascii //nolint:revive ) diff --git a/termenv.go b/termenv.go index 84a82c2..d702cd5 100644 --- a/termenv.go +++ b/termenv.go @@ -13,15 +13,15 @@ var ( ) const ( - // Escape character + // Escape character. ESC = '\x1b' - // Bell + // Bell. BEL = '\a' - // Control Sequence Introducer + // Control Sequence Introducer. CSI = string(ESC) + "[" - // Operating System Command + // Operating System Command. OSC = string(ESC) + "]" - // String Terminator + // String Terminator. ST = string(ESC) + `\` )