summaryrefslogtreecommitdiff
path: root/ui/style.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtzfr.eu>2020-08-25 23:16:54 +0200
committerHubert Hirtz <hubert@hirtzfr.eu>2020-08-26 17:53:40 +0200
commite91396fe94643b2745e6350210d3637d9770d5b4 (patch)
tree23fdbd7a0eb9ae7d6409c0d0aed31f4512d51bc8 /ui/style.go
parentAllow /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.go8
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,