Skip to content

Commit

Permalink
Hide cursor until we get focus
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 26, 2021
1 parent afa10ef commit a5b38c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions render.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func (t *Terminal) refreshCursor() {
// CreateRenderer requests a new renderer for this terminal (just a wrapper around the TextGrid)
func (t *Terminal) CreateRenderer() fyne.WidgetRenderer {
t.cursor = canvas.NewRectangle(theme.PrimaryColor())
t.cursor.Hidden = true
t.cursor.Resize(fyne.NewSize(2, t.guessCellSize().Height))

r := &render{term: t}
Expand Down

0 comments on commit a5b38c0

Please sign in to comment.