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

render ASCII on windows #18

Closed
wants to merge 2 commits into from
Closed

render ASCII on windows #18

wants to merge 2 commits into from

Conversation

mattn
Copy link

@mattn mattn commented May 27, 2015

As you know, on windows, there are some unicode points that doesn't render correctly.
For example, east asian ambiguous width. It is not a problem of godit. Not a problem of termbox-go. it is a problem of ambiguous character widths. so i want to suggest to use ASCII characters for rendering borders on windows.

Before

After

Currenly, this is ugly patch. if you want this change, I'll update.

@nsf
Copy link
Owner

nsf commented May 27, 2015

I agree with you that it's an issue, but how about simply using ASCII everywhere? I don't really like these big if statements you did there. I mean it looks good enough with just ASCII, I can live with that on linux too.

I'll do the conversion myself, it's not hard at all.. Will do it tomorrow for sure. But thanks for the idea, yeah.. it's a good idea.

@nsf
Copy link
Owner

nsf commented May 28, 2015

Done: 51c0dc2c3bd9a5033e

@mattn
Copy link
Author

mattn commented May 28, 2015

Thanks!

FYI, one more this. https://github.com/nsf/tulib/blob/master/buffer.go#L173
This is also ambiguous width character.

@nsf
Copy link
Owner

nsf commented May 28, 2015

What should I replace it with? :) Maybe '~'?

@nsf
Copy link
Owner

nsf commented May 28, 2015

Replaced the unicode ellipsis with '~'. It is used in other popular apps like Far Manager or Midnight Commander for that role.

@mattn
Copy link
Author

mattn commented May 29, 2015

it works fine. thank you

@mattn mattn closed this May 29, 2015
@mattn mattn deleted the ascii-windows branch May 29, 2015 00:15
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

Successfully merging this pull request may close these issues.

2 participants