问题
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