--- lbbs/src/screen.c 2004/10/22 15:21:28 1.1 +++ lbbs/src/screen.c 2004/10/22 19:15:49 1.3 @@ -28,12 +28,22 @@ moveto (int row, int col) { prints ("\r"); } + iflush(); } void clrtoeol () { prints ("\033[K"); + iflush(); +} + +void +clearscr() +{ + prints ("\33[2J"); + moveto (0,0); + iflush(); } int @@ -127,3 +137,12 @@ show_bottom() { return 0; } + +int +press_any_key() +{ + prints (" \033[1;33m°´ÈÎÒâ¼üÅ̼ÌÐø...\033[0;37m"); + iflush(); + + return igetch (); +}