--- lbbs/src/screen.c 2005/03/22 08:19:11 1.13 +++ lbbs/src/screen.c 2005/05/06 16:57:58 1.18 @@ -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"); @@ -100,17 +107,20 @@ set_input_echo (int echo) } int -str_input (char *buffer, int buffer_length, int echo_mode) +_str_input (char *buffer, int buffer_length, int echo_mode) { char buf[256], ch; int c, offset = 0, len, loop = 1, i, hz = 0; - memset (buffer, '\0', buffer_length); + for (i=0; i