diff --git a/CHANGELOG b/CHANGELOG index 4b065ea..234f44c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,8 @@ v1.5.6 (WIP) - Draw additional accents when rendering a list divider - Update List, Table and TreeView to not handle Tab or Backtab +- When resetting color with "-" tag, set background color to primitive +background color, rather than the terminal background color v1.5.5 (2020-05-24) - Fix Application.Suspend by restructuring event loop (queued updates will now only run between draws) diff --git a/README.md b/README.md index e81089a..bddae08 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,10 @@ func main() { ``` Examples are available via [godoc](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview#pkg-examples) -and in the "demos" subdirectory. +and in the [demos](https://code.rocketnine.space/tslocum/cview/src/branch/master/demos) subdirectory. For a presentation highlighting the features of this package, compile and run -the program in the "demos/presentation" subdirectory. +the program in the [demos/presentation](https://code.rocketnine.space/tslocum/cview/src/branch/master/demos/presentation) subdirectory. ## Documentation diff --git a/textview.go b/textview.go index 69a85ad..789ef64 100644 --- a/textview.go +++ b/textview.go @@ -1083,7 +1083,7 @@ func (t *TextView) Draw(screen tcell.Screen) { } // Draw the buffer. - defaultStyle := tcell.StyleDefault.Foreground(t.textColor) + defaultStyle := tcell.StyleDefault.Foreground(t.textColor).Background(t.backgroundColor) for line := t.lineOffset; line < len(t.index); line++ { // Are we done? if line-t.lineOffset >= height {