ÓÐÒ»ÓÃcursesдµÄ³ÌÐò£¬ÔÚredhat3ÏÂÕý³££¬Äõ½5ϺóÓиöºº×ÖÊÇÂÒÂ루Ŀǰ·¢ÏÖÕâÒ»¸öºº×Ö£¬ÆäËüºº×ÖÕý³£)--"?"
½«curses¸ÄΪ ncursesw£¬³ÌÐòÖмÓÈësetlocale()£¬lib¸ÄΪlibncursewºó£¬¸Ãºº×Ö¿ÉÒÔÕý³£ÏÔʾ£¬µ«¹â±êµÈ²»ÔÙºÃÓá£
ÏÖÔÚÏëÖªµÀΪʲô3Ï£¬Óû§curses£¨²»ÐèÒª»»ncursesw)¼´¿ÉÒÔÕý³£ÏÔʾ¸Ãºº×Ö£¬ÔÚ5ϲ»ÐÐÄØ£¿
/etc/sysconfig/i18nÒ²»»¹ýnÖÖ£¬Çó½âÇó½âÇó½âÇó½âÇó½âÇó½â
ewolfe ÓÚ 2014-01-12 20:34:55·¢±í:
Ô´ÂëÈçÏ£º
#include
#include
main()
{
char *out3="ΪʲôÊÇÂÒÂëÄØ[?]\n";
//setlocale(LC_ALL,"");
initscr();
cbreak();
mvaddstr(10,10,out3);
refresh();
endwin();
return 0;
}
~
±àÒëÓï¾ä: cc a.c -lncurses
REDHAT AS3 ϱàÒëÖ´ÐÐûÓÐÎÊÌâ
REDHAT enterprise linux 5 ϱàÒëÔò"?"×ÖÏÔʾÂÒÂë
Èç¹ûÉèÖÃsetlocale£¬ÇÒcurserµÄlib»»Îª -lncurseswÔò¿ÉÒÔÕý³£ÏÔʾ£»µ«ÒòΪ»»Îª¸ÃlibºóÓдóÁ¿Ð޸ģ¬ËùÒÔ²»Ïë»»£¬ÇóÂÒÂëÔÒò
chushihua ÓÚ 2014-01-12 19:40:34·¢±í:
ÂùÓеÀÀíµÄ
numdon ÓÚ 2014-01-09 21:49:51·¢±í:
ÊDZàÂëµÄÊÂ