ncurses programming howto 书中源代码-2

来源:互联网 发布:javascript忍者秘籍 编辑:程序博客网 时间:2024/04/17 06:05

/*
 * =====================================================================================
 *
 *       Filename:  14.c
 *
 *    Description:  14
 *
 *        Version:  1.0
 *        Created:  2010骞?9鏈?6鏃?16鏃?8鍒?3绉? *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  cdutyangshaokun@163.com
 *        Company:  College of Information Engineering of CDUT
 *
 * =====================================================================================
 */
#include<ncurses.h>
int main()
{
    initscr();
    printw("hello world!!!/n");
    refresh();
    def_prog_mode();
    endwin();
    system("/bin/sh");
    reset_prog_mode();
    refresh();
    printw("another string/n");
    refresh();
    endwin();
    return 0;
}

原创粉丝点击