Skip to content

Unicode disappears if requested twice on the same place on Windows #621

Closed
@iscas-zac

Description

@iscas-zac

Hello, I am faced with a display issue of Lazygit, which tracks to a similar problem here in #145 , where the unicode disappears after I want it to show on the same place twice. The problem appears just one day, and I think it is due to some wrong configuration of my Windows system. The pwsh and cmd, or the terminal type seems not to make a difference.

The function I use is this:

func main() {
	var screen tcell.Screen
	if s, e := tcell.NewConsoleScreen(); e != nil {
		screen = nil
	} else if e = s.Init(); e != nil {
		screen = nil
	} else {
		screen = s
	}

	screen.SetContent(2, 7, '啊', nil, tcell.StyleDefault)
	screen.Show()
	screen.SetContent(2, 7, '啊', nil, tcell.StyleDefault)
	screen.Show()
}

and the difference is shown below:
bad image
and
good image
(the displayed case just deletes a random statement of the last four in the main function. Any one will do.)

I am pretty convinced that this problem is hard to reproduce, as my computer has also been good for a long time, so feel free to ask me about any configuration of my computer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions