using ncurses in a virtual terminal

那年仲夏 提交于 2019-12-07 04:44:16

问题


I'm new to Linux and virtual terminals as well as to Curses, so please forgive me if this description isn't clear as it could be. I'm trying to use Curses on Fedora 12 to output status information to a virtual terminal (you know one of the terminals you can get to by pressing ctrl-alt-Fx). When I start up my application on one of the virtual terminals ($TERM=linux), the lines for the boxes come out as the characters 'j', 'q', 'k'....(and a few other characters). Yet when I start it within a terminal window ($TERM=xterm), everything displays as it should. Can someone explain to me what I need to do to get the VT output to appear as the xterm? Is there a terminal setting that I can set from within my program to cause the output to be correct? Any help would be greatly appreciated.

来源:https://stackoverflow.com/questions/6820342/using-ncurses-in-a-virtual-terminal

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