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

Window::border() and unicode #76

Open
GOKOP opened this issue Jul 5, 2020 · 3 comments
Open

Window::border() and unicode #76

GOKOP opened this issue Jul 5, 2020 · 3 comments

Comments

@GOKOP
Copy link

GOKOP commented Jul 5, 2020

So basically I want to create a window border with the character. I've read in old issues here that addch() doesn't work because it calls a non-wide char using function in the backend so I guess it's the same for border(). Does that mean I have to print the border tediously using addstr() or is there a better way?

And to make it more of an issue and less of a support question, I'm not sure if ncurses and pdcurses have wide char border functions but since Rust is so unicode-oriented I guess pancurses should call wide functions whenever possible

@palto42
Copy link

palto42 commented Sep 13, 2020

@GOKOP Have you found a solution? I was also just trying to draw a nice border with unicode chars and found that the border function doesn't work.

@GOKOP
Copy link
Author

GOKOP commented Sep 13, 2020

@palto42 I ended up drawing the border myself with addstr()

@palto42
Copy link

palto42 commented Sep 13, 2020

@GOKOP Thanks.
I meanwhile found that the limitation of border is caused by the underlying C function of ncurses, which means a unicode implementation can't do a simple call to the C-lib and would require a similar solution as you did.

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