pancurses icon indicating copy to clipboard operation
pancurses copied to clipboard

Window::border() and unicode

Open GOKOP opened this issue 5 years ago • 3 comments

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

GOKOP avatar Jul 05 '20 15:07 GOKOP

@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.

palto42 avatar Sep 13 '20 10:09 palto42

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

GOKOP avatar Sep 13 '20 15:09 GOKOP

@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.

palto42 avatar Sep 13 '20 19:09 palto42