Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetBackgroundColor on Box doesn't cover all borders #1072

Open
paololazzari opened this issue Jan 24, 2025 · 1 comment
Open

SetBackgroundColor on Box doesn't cover all borders #1072

paololazzari opened this issue Jan 24, 2025 · 1 comment

Comments

@paololazzari
Copy link
Contributor

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

@digitallyserviced
Copy link
Contributor

digitallyserviced commented Feb 21, 2025

@paololazzari
Is your terminal locked to the columns width and height of the TTY?

If you just fill your shell prompt with junk text, do they fill the spaces you are referencing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants