ºìÁªLinuxÃÅ»§
Linux°ïÖú

Redhat5.5ÖÐÎÄÂÒÂëÈçºÎ½â¾ö

·¢²¼Ê±¼ä:2014-01-09 15:46:43À´Ô´:ºìÁª×÷Õß:ewolfe
ÓÐÒ»ÓÃcursesдµÄ³ÌÐò£¬ÔÚredhat3ÏÂÕý³££¬Äõ½5ϺóÓиöºº×ÖÊÇÂÒÂ루Ŀǰ·¢ÏÖÕâÒ»¸öºº×Ö£¬ÆäËüºº×ÖÕý³£)--"?"

½«curses¸ÄΪ ncursesw£¬³ÌÐòÖмÓÈësetlocale()£¬lib¸ÄΪlibncursewºó£¬¸Ãºº×Ö¿ÉÒÔÕý³£ÏÔʾ£¬µ«¹â±êµÈ²»ÔÙºÃÓá£

ÏÖÔÚÏëÖªµÀΪʲô3Ï£¬Óû§curses£¨²»ÐèÒª»»ncursesw)¼´¿ÉÒÔÕý³£ÏÔʾ¸Ãºº×Ö£¬ÔÚ5ϲ»ÐÐÄØ£¿


/etc/sysconfig/i18nÒ²»»¹ýnÖÖ£¬Çó½âÇó½âÇó½âÇó½âÇó½âÇó½â
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. 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ºóÓдóÁ¿Ð޸ģ¬ËùÒÔ²»Ïë»»£¬ÇóÂÒÂëÔ­Òò

  2. chushihua ÓÚ 2014-01-12 19:40:34·¢±í:

    ÂùÓеÀÀíµÄ

  3. numdon ÓÚ 2014-01-09 21:49:51·¢±í:

    ÊDZàÂëµÄÊÂ