diff --git a/terminal/tcell/tcell.go b/terminal/tcell/tcell.go index 07553ad..6177202 100644 --- a/terminal/tcell/tcell.go +++ b/terminal/tcell/tcell.go @@ -51,7 +51,7 @@ func ColorMode(cm terminalapi.ColorMode) Option { } // ClearStyle sets the style to use for tcell when clearing the screen. -// Defaults to white foreground and black background. +// Defaults to ColorDefault for foreground and background. func ClearStyle(fg, bg cell.Color) Option { return option(func(t *Terminal) { t.clearStyle = &cell.Options{ @@ -91,8 +91,8 @@ func newTerminal(opts ...Option) (*Terminal, error) { done: make(chan struct{}), colorMode: DefaultColorMode, clearStyle: &cell.Options{ - FgColor: cell.ColorWhite, - BgColor: cell.ColorBlack, + FgColor: cell.ColorDefault, + BgColor: cell.ColorDefault, }, screen: screen, } diff --git a/terminal/tcell/tcell_test.go b/terminal/tcell/tcell_test.go index e77fcf7..6b8d79d 100644 --- a/terminal/tcell/tcell_test.go +++ b/terminal/tcell/tcell_test.go @@ -76,8 +76,8 @@ func TestNewTerminalClearStyle(t *testing.T) { want: &Terminal{ colorMode: terminalapi.ColorMode256, clearStyle: &cell.Options{ - FgColor: cell.ColorWhite, - BgColor: cell.ColorBlack, + FgColor: cell.ColorDefault, + BgColor: cell.ColorDefault, }, }, },