[GH-ISSUE #674] bug: The text in the border is missing the first character #495

Closed
opened 2026-03-04 01:05:29 +03:00 by kerem · 2 comments
Owner

Originally created by @chyroc on GitHub (Nov 19, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/674

system: macos 10.15.7

  • iTerm2

  • zsh

code:

package main

import (
	"os"

	"github.com/rivo/tview"
)

func main() {
	app := tview.NewApplication()

	box := tview.NewBox().SetBorder(true).SetTitle("box demo")

	app.SetRoot(box, true)

	os.Exit(errToExitCode(app.Run()))
}

func errToExitCode(err error) int {
	if err != nil {
		return 1
	}
	return 0
}

result:

image

Originally created by @chyroc on GitHub (Nov 19, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/674 system: macos 10.15.7 + iTerm2 + zsh code: ```go package main import ( "os" "github.com/rivo/tview" ) func main() { app := tview.NewApplication() box := tview.NewBox().SetBorder(true).SetTitle("box demo") app.SetRoot(box, true) os.Exit(errToExitCode(app.Run())) } func errToExitCode(err error) int { if err != nil { return 1 } return 0 } ``` result: ![image](https://user-images.githubusercontent.com/15604894/142569275-9fdfb265-864c-4938-8666-58d79719dea0.png)
kerem closed this issue 2026-03-04 01:05:29 +03:00
Author
Owner

@joegrasse commented on GitHub (Nov 29, 2021):

Looks like some rendering issues happening. Maybe try changing your font.

For reference #66

<!-- gh-comment-id:981660460 --> @joegrasse commented on GitHub (Nov 29, 2021): Looks like some rendering issues happening. Maybe try changing your font. For reference #66
Author
Owner

@rivo commented on GitHub (Feb 15, 2022):

It's the first question in the FAQ: https://github.com/rivo/tview/wiki/FAQ

Please refer to that for a solution.

<!-- gh-comment-id:1040542534 --> @rivo commented on GitHub (Feb 15, 2022): It's the first question in the FAQ: https://github.com/rivo/tview/wiki/FAQ Please refer to that for a solution.
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#495
No description provided.