Example #1
0
File: io.c Project: 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));
}
Example #2
0
File: stuff.c Project: 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));
}
Example #3
0
File: io.c Project: 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);
}