messages_text.go 321 B

1234567891011121314151617181920212223
  1. package main
  2. import (
  3. "github.com/rivo/tview"
  4. )
  5. type MessagesText struct {
  6. *tview.TextView
  7. }
  8. func newMessagesText() *MessagesText {
  9. mt := &MessagesText{
  10. TextView: tview.NewTextView(),
  11. }
  12. mt.SetDynamicColors(true)
  13. mt.SetRegions(true)
  14. mt.SetBorder(true)
  15. mt.SetBorderPadding(cfg.BorderPadding())
  16. return mt
  17. }