亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

endwin

  • //顏色初始化 if(!has_colors() || start_color() == ERR){ endwin() printf("Terminal does not su

    //顏色初始化 if(!has_colors() || start_color() == ERR){ endwin() printf("Terminal does not support color.\n") exit(1) } init_pair(1, COLOR_GREEN, COLOR_BLACK) init_pair(2, COLOR_RED, COLOR_BLACK) init_pair(3, COLOR_CYAN, COLOR_BLACK) init_pair(4, COLOR_WHITE, COLOR_BLACK) init_pair(5, COLOR_MAGENTA, COLOR_BLACK) init_pair(6, COLOR_BLUE, COLOR_BLACK) init_pair(7, COLOR_YELLOW, COLOR_BLACK) //寫字符串 for(i = 1 i <= 7 i++) { attron(COLOR_PAIR(i)) printw("color pair d in normal mode\n", i) } for(i = 1 i <= 7 i++) { attron(COLOR_PAIR(i) | A_BLINK | A_UNDERLINE) printw("color pair d in normal mode\n", i) }

    標簽: start_color has_colors Terminal endwin

    上傳時間: 2014-01-14

    上傳用戶:vodssv

  • //建立窗口 win1 = newwin(15, 50, 1, 1) box(win1, ACS_VLINE, ACS_HLINE) mvwprintw(win1, 2,1, "

    //建立窗口 win1 = newwin(15, 50, 1, 1) box(win1, ACS_VLINE, ACS_HLINE) mvwprintw(win1, 2,1, "WINDOW 1") mvwprintw(win1, 4,1, "Press any key switching to window 2") win2 = newwin(15, 40, 4, 20) box(win2, ACS_VLINE, ACS_HLINE) mvwprintw(win2, 2,1, "WINDOW 2") //建立子窗口 subwin = derwin(win2, 5, 25, 4, 5) box(subwin, ACS_VLINE, ACS_HLINE) mvwprintw(subwin, 2,1, "Sub Window of Window2") //刷新屏幕 refresh() wrefresh(win1) wrefresh(win2) touchwin(win1) wrefresh(win1) getch() touchwin(win2) mvwprintw(win2, 12,1, "Press any key to exit...") wrefresh(win2) //等待按鍵 getch() //結束 delwin(win1) delwin(subwin) delwin(win2) endwin()

    標簽: ACS_VLINE ACS_HLINE mvwprintw win

    上傳時間: 2017-06-12

    上傳用戶:plsee

主站蜘蛛池模板: 荣成市| 莆田市| 桃源县| 雷州市| 雷山县| 肃南| 仙桃市| 宁夏| 周至县| 宝清县| 台南县| 成都市| 三原县| 左云县| 曲周县| 南阳市| 通河县| 新泰市| 舒城县| 乡宁县| 黔西县| 两当县| 大埔区| 连城县| 辽阳县| 淮北市| 盐源县| 威信县| 新疆| 富裕县| 库尔勒市| 寿宁县| 柳林县| 社会| 浮梁县| 鹤庆县| 东丰县| 阿巴嘎旗| 拉萨市| 太和县| 汽车|