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

mosh can't show "\u2699" #582

Closed
timfeirg opened this issue Feb 4, 2015 · 1 comment
Closed

mosh can't show "\u2699" #582

timfeirg opened this issue Feb 4, 2015 · 1 comment

Comments

@timfeirg
Copy link

timfeirg commented Feb 4, 2015

The character "\u2699" looks like this: ⚙, a symbol used to indicate the existence of a background job in my favourite zsh theme agnoster, which in local terminal, should looks like this:

timfeirg_timfeirg-mba____workspace-setup_and_new_issue_ _keithw_mosh

$ echo "\u2699"

And nothing shows up at mosh terminal.

@keithw
Copy link
Member

keithw commented Feb 11, 2015

Mosh is just using your system's libc (and the current locale) to determine whether a character is printable or not. GNU libc has this character, but OS X does not have as recent a version of Unicode. You can check with this program: http://web.mit.edu/keithw/Public/wcwidthtest.c

With glibc (on Linux), and filling in int val = 0x2699; where it says /* Fill in Unicode scalar value here */, this prints:

UCS version supported is 201103
wcwidth(U+2699) = 1

and Mosh does display the character properly.

See also #478

We have some general plans to fix this in the future by shipping our own Unicode tables (or deriving them from the client's terminal), but for now your best bet may be to file a radar bug with Apple and ask them to update.

@keithw keithw closed this as completed Feb 11, 2015
creaktive added a commit to creaktive/mosh that referenced this issue Jun 26, 2021
sam-340453 added a commit to sam-340453/mosh that referenced this issue Mar 4, 2023
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

No branches or pull requests

2 participants