Convert message buffer to use custom colorable strings

This commit is contained in:
Tulir Asokan
2018-04-10 16:07:16 +03:00
parent b6e58e83a8
commit ee67c1446c
5 changed files with 264 additions and 64 deletions

View File

@ -87,8 +87,9 @@ type MessageMeta interface {
SenderColor() tcell.Color
TextColor() tcell.Color
TimestampColor() tcell.Color
Timestamp() string
Date() string
Timestamp() time.Time
FormatTime() string
FormatDate() string
CopyFrom(from MessageMeta)
}