c++ - How to change the characters output by hline/vline? -
i trying create border around window hline/vline. desired output follows
but instead letters such q
, m
being used border.
here code far:
mvwhline(white_space, 0, 3, acs_hline, 10);
how use lines instead of letters? thanks!
the usual problem using terminal descriptions using vt100 line-drawing terminals not support feature. if question showed complete program, simple test , see if there other issue.
ncurses makes checks "linux" , "screen", not everything. putty example, ncurses provides environment variable handle these cases: ncurses_no_utf8_acs
. feature added in late 2011 (some old distributions before ncurses 5.6 may not work, example). note ssh drops unusual environment variables, (again using putty example), may not possible preset variable in client setting connection.
for programs not support vt100 line-drawing, ncurses may use ascii graphics (non-letter characters such |
, -
) draw lines noted in waddch
manual page. if locale uses utf-8 encoding, must use "ncursesw" library make ncurses use utf-8 characters alternate ascii graphics.
Comments
Post a Comment