示例#1
0
文件: io.c 项目: chage/formosa
int
getdata(int line, int col, const char *prompt, char *buf, int len, int echo)
{
    move(line, col);
    if(prompt && *prompt) outs(prompt);
    return vgets(buf, max_len(col, prompt, len), getdata2vgetflag(echo));
}
示例#2
0
文件: stuff.c 项目: ptt/pttbbs
int
getdata(int line, int col, const char *prompt, char *buf, int len, int echo)
{
    move(line, col); SOLVE_ANSI_CACHE();
    if(prompt && *prompt) outs(prompt);
    return vgets(buf, len, getdata2vgetflag(echo));
}
示例#3
0
文件: io.c 项目: chage/formosa
int
getdata_str(int line, int col, const char *prompt, char *buf, int len, int echo, char *defaultstr)
{
    move(line, col);
    if(prompt && *prompt) outs(prompt);
    return vgetstr(buf, max_len(col, prompt, len), getdata2vgetflag(echo), defaultstr);
}