|
|
发表于 2006-10-8 09:34:41
|
显示全部楼层
用include <ncurses.h>吧
再是你在 initscr(); 后就不要用printf了 ,这个时候肯定会出现乱码的
你用这种方法试试吧,记入日志,不要直接打印,因为你调用initscr(); 的时候又初始化了
一个screen,而printf默认是往你原来的界面打印,所以会出问题
def_prog_mode();
endwin();
WriteLog(logpath,"MONITOR","OPR","..%s\n",mo_menu[s_bar].barmenu[s_menu].menucond.des);
WriteLog(logpath,"MONITOR","OPR","..\t%s\n",msg);
reset_prog_mode();
我得表达能力不好,解释不清楚,你上网多搜索一下吧 |
|