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

macOS: ncurses wide character support for example 7 #168

Open
nficca opened this issue Sep 2, 2018 · 2 comments
Open

macOS: ncurses wide character support for example 7 #168

nficca opened this issue Sep 2, 2018 · 2 comments

Comments

@nficca
Copy link

nficca commented Sep 2, 2018

Currently on macOS HighSierra Version 10.13.6.

Trying to get example 7 to run properly, but I'm receiving this message when I try:

This example requires wide character support.

Which tells me that I probably haven't set up ncursesw properly.

Here's what I've done (as per the readme):

  1. brew install ncurses
  2. brew link --force ncurses
  3. cargo run --example ex_7

What am I missing here? Are there additional steps I should be taking to get this to work?

@nficca
Copy link
Author

nficca commented Sep 2, 2018

Ah, I just noticed this:

let wide = cfg!(all(feature = "wide", not(target_os = "macos")));

If I change that line to:

let wide = cfg!(feature = "wide");

And then run:

cargo run --features="wide" --example ex_7

It works fine.

What's the reason for the excluding macOS from using wide characters?

@nficca
Copy link
Author

nficca commented Sep 2, 2018

Hm, is it because not all of the WchResult::KeyCode(i32) values work? I've tried wget_wch with backspace, enter, tab, and escape and they all returned WchResult::Char(u32) values.

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

1 participant