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)); }
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)); }
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); }