-
Notifications
You must be signed in to change notification settings - Fork 137
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
dealing with ambiguous-width chars('\u2500') #73
Comments
see also: #69 |
U+2500 is a standard box drawing character, do you run in to this problem with other terminal applications (box drawing characters are usually used for pseudo-menu terminal applications)? I know they are listed as having ambiguous width but this is a pretty crappy state of affairs for box drawing! I don't have a solution for this atm but I'd like to know more about the prevalence of this setting, I didn't know it was something that people even did. |
@rvagg It happened to me too, it seems like the U+2500 character on a standard font on mac seems to be too long. #69 uses |
This is a screenshot for learnyounode-jp on Terminal.app(Mac default) that is checked It also happen in this case: (I just guess) e.g. |
well that's just unpleasant, where's our feature detection for ansi drawing darn it |
Hi.
I found something wrong display, When I try to solve this issue (workshopper/levelmeup#37) on my own repo(WIP) (https://github.com/tgfjt/levelmeup-jp/tree/update-workshopper-latest)
My ENV
10.10
2.0.0.20141103
\u2500
onmenu.js
is used to display as a line. This chars is ambiguous-width chars.My setting with iTerm2 below:
settings's background
I'm a Japanese, and usually edit some files that has multibyte chars.
not as double width:
as double width:
I think that the easy way is use a half-width hyphen.
menu.write(util.repeat('-', opts.width) + '\n')
But you used
'-'
first time and changed'\u2500'
, so do you have any idea?related:
nodeschool/organizers#64
The text was updated successfully, but these errors were encountered: