[GH-ISSUE #1072] SetBackgroundColor on Box doesn't cover all borders #777

Closed
opened 2026-03-04 01:07:39 +03:00 by kerem · 1 comment
Owner

Originally created by @paololazzari on GitHub (Jan 24, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1072

e.g. running:

package main

import (
	"github.com/gdamore/tcell/v2"
	"github.com/rivo/tview"
)

func main() {
	box := tview.NewBox().SetBorder(false).SetTitle("Hello, world!").SetBackgroundColor(tcell.ColorWhite)
	if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil {
		panic(err)
	}
}

I see the terminal color (blue) on the left, bottom and right borders:

Image

Originally created by @paololazzari on GitHub (Jan 24, 2025). Original GitHub issue: https://github.com/rivo/tview/issues/1072 e.g. running: ```go package main import ( "github.com/gdamore/tcell/v2" "github.com/rivo/tview" ) func main() { box := tview.NewBox().SetBorder(false).SetTitle("Hello, world!").SetBackgroundColor(tcell.ColorWhite) if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil { panic(err) } } ``` I see the terminal color (blue) on the left, bottom and right borders: ![Image](https://github.com/user-attachments/assets/2997e552-1471-48a9-9787-f5f280dbad3b)
kerem closed this issue 2026-03-04 01:07:40 +03:00
Author
Owner

@rivo commented on GitHub (Mar 28, 2025):

Looks like a terminal application topic to me rather than a tview issue. You might want to get in touch with the developers of your terminal.

<!-- gh-comment-id:2762030377 --> @rivo commented on GitHub (Mar 28, 2025): Looks like a terminal application topic to me rather than a `tview` issue. You might want to get in touch with the developers of your terminal.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#777
No description provided.