搜索结果

找到约 3 项符合 stdscr 的查询结果

Linux/Unix编程 //初始化 initscr() //获得屏幕尺寸 getmaxyx(stdscr, h, w) //画背景 for(i=0 i<h i++)

//初始化 initscr() //获得屏幕尺寸 getmaxyx(stdscr, h, w) //画背景 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 ...
https://www.eeworm.com/dl/619/451814.html
下载: 99
查看: 1108

Linux/Unix编程 //初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //设置模式

//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //设置模式 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 ...
https://www.eeworm.com/dl/619/451811.html
下载: 91
查看: 1018

Linux/Unix编程 //初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } cbreak()

//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } cbreak() noecho() keypad(stdscr, TRUE) //建立菜单项 for(i=0 i<N_ITEMS i++){ items[i] = new_item(months[i], "") } //建立菜单 mymenu = new_menu(items) //设置为5行单列的菜单 set_menu_fo ...
https://www.eeworm.com/dl/619/451812.html
下载: 73
查看: 1055