diff options
author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-25 23:16:54 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-26 17:53:40 +0200 |
commit | e91396fe94643b2745e6350210d3637d9770d5b4 (patch) | |
tree | 23fdbd7a0eb9ae7d6409c0d0aed31f4512d51bc8 /ui/style.go | |
parent | Allow /part with a reason (diff) |
General refactor yay
- Centralize message formatting
- Make line formatting more flexible
- Provide more information in irc events
- Refactor command handling
- Add a /help command
- Make /me reply to last query if from home
- Enforce argument for /me
- Make BufferList and Editor public
- Batch processing of IRC events
Diffstat (limited to '')
-rw-r--r-- | ui/style.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/style.go b/ui/style.go index f6e8c39..8672535 100644 --- a/ui/style.go +++ b/ui/style.go @@ -169,6 +169,14 @@ func (cb *colorBuffer) WriteRune(r rune) (ok int) { return } +const ( + ColorWhite = iota + ColorBlack + ColorBlue + ColorGreen + ColorRed +) + var ansiCodes = []tcell.Color{ // Taken from <https://modern.ircdocs.horse/formatting.html> tcell.ColorWhite, tcell.ColorBlack, tcell.ColorBlue, tcell.ColorGreen, |