Output a nice “block” character with ncurses and C++?

▼魔方 西西 提交于 2019-12-08 01:41:12

问题


I'm writing a console app in c++ using ncurses and I'd like to output a solid ascii block. It'd basically tape up all of the area that would normally be reserved for white space of a normal character. Is there an ASCII character I'm missing or a library function I haven't seen in the manual?


回答1:


ASCII is only 7-bit. If you are willing to go with 8-bit, there is the Code Page 437:

http://en.wikipedia.org/wiki/Code_page_437

Then there is Unicode, which opens a whole new world of characters...



来源:https://stackoverflow.com/questions/5117171/output-a-nice-block-character-with-ncurses-and-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!