form = new_form(fields)
scale_form(form, &rows, &cols)
win = newwin(rows+3, cols+4, 3, 20)
subwin = derwin(win, rows, cols, 1, 2)
set_form_sub(form, subwin)
box(win, 0, 0)
keypad(win, TRUE)
post_form(form)
refresh()
wrefresh(win)
wrefresh(subwin)
//设置覆盖模式
...
/dl/451810.html
标签:
form
cols
rows
scale_form
上传时间:
2017-06-12
上传用户:wff
//初始化
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 ...
/dl/451811.html
标签:
EXIT_FAILURE
initcurs
initscr
perror
上传时间:
2013-12-20
上传用户:FreeSky