--- lbbs/src/screen.c 2005/03/22 13:36:13 1.14 +++ lbbs/src/screen.c 2005/05/06 15:48:44 1.16 @@ -62,6 +62,13 @@ clrline (int line_begin, int line_end) } void +clrtobot (int line_begin) +{ + clrline (line_begin, screen_lines); + moveto (line_begin, 0); +} + +void clearscr () { prints ("\33[2J"); @@ -161,6 +168,22 @@ str_input (char *buffer, int buffer_leng } int +get_data (int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode) +{ + int len; + + moveto (row, col); + iflush (); + prints (prompt); + prints (buffer); + iflush (); + + len = str_input (buffer, buffer_length, echo_mode); + + return len; +} + +int display_file (const char *filename) { char buffer[260];