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

蟲(chóng)蟲(chóng)首頁(yè)| 資源下載| 資源專(zhuān)輯| 精品軟件
登錄| 注冊(cè)

stdscr

  • //初始化 initscr() //獲得屏幕尺寸 getmaxyx(stdscr, h, w) //畫(huà)背景 for(i=0 i<h i++)

    //初始化 initscr() //獲得屏幕尺寸 getmaxyx(stdscr, h, w) //畫(huà)背景 for(i=0 i<h i++) for(j=0 j<w j++){ mvaddch(i, j, ACS_CKBOARD) } refresh() //建立窗口 pad = newpad(80, 128) for(i=0 i<80 i++){ char line[128] sprintf(line, "This line in pad is numbered d\n", i) mvwprintw(pad, i, 0, line) } //刷新屏幕 refresh() prefresh(pad, 0, 1, 5, 10, 20, 45) for(i=0 i<50 i++){ prefresh(pad, i+1, 1, 5, 10, 20, 45) usleep(30000) } //等待按鍵 getch()

    標(biāo)簽: getmaxyx initscr stdscr for

    上傳時(shí)間: 2014-08-30

    上傳用戶(hù):龍飛艇

  • //初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //設(shè)置模式

    //初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //設(shè)置模式 cbreak() noecho() keypad(stdscr, TRUE) //建立窗口 win = newwin(h, w, 3, 20) box(win, 0, 0) keypad(win, TRUE) wmove(win, cury, curx) mvaddstr(16, 1, "Press arrow keys to move the cursor within the window.\n") mvaddstr(17, 1, "Press q to quit.\n") refresh() wrefresh(win)

    標(biāo)簽: EXIT_FAILURE initcurs initscr perror

    上傳時(shí)間: 2013-12-20

    上傳用戶(hù):FreeSky

  • //初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } cbreak()

    //初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } cbreak() noecho() keypad(stdscr, TRUE) //建立菜單項(xiàng) for(i=0 i<N_ITEMS i++){ items[i] = new_item(months[i], "") } //建立菜單 mymenu = new_menu(items) //設(shè)置為5行單列的菜單 set_menu_format(mymenu, 5, 1) set_menu_mark(mymenu, "*") //獲得菜單的行數(shù)很列數(shù) scale_menu(mymenu, &mrows, &mcols) //建立窗口和子窗口 win = newwin(mrows + 2, mcols + 2, 3, 30) keypad(win, TRUE) box(win, 0, 0) subwin = derwin(win, 0, 0, 1, 1) //設(shè)置菜單的窗口 set_menu_sub(mymenu, subwin) //在子窗口上放置菜單 post_menu(mymenu) refresh() wrefresh(win)

    標(biāo)簽: EXIT_FAILURE initcurs initscr cbreak

    上傳時(shí)間: 2013-11-29

    上傳用戶(hù):小眼睛LSL

主站蜘蛛池模板: 绥芬河市| 德惠市| 曲水县| 都安| 惠州市| 兴安县| 喀喇| 海南省| 定远县| 慈溪市| 铁力市| 莱芜市| 遵义市| 于田县| 兴安盟| 林芝县| 濮阳县| 芒康县| 老河口市| 无为县| 平凉市| 方城县| 南丹县| 大邑县| 榆林市| 陆丰市| 明溪县| 安阳县| 金塔县| 宁化县| 山阴县| 龙井市| 政和县| 特克斯县| 丰台区| 宜州市| 出国| 延庆县| 定安县| 筠连县| 义乌市|