/[LeafOK_CVS]/lbbs/src/screen.c
ViewVC logotype

Diff of /lbbs/src/screen.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.23 by sysadm, Tue Apr 29 14:04:10 2025 UTC Revision 1.25 by sysadm, Wed Apr 30 12:54:41 2025 UTC
# Line 17  Line 17 
17    
18  #include "bbs.h"  #include "bbs.h"
19  #include "common.h"  #include "common.h"
20    #include "log.h"
21  #include "io.h"  #include "io.h"
22    #include "screen.h"
23    #include <string.h>
24    #include <ctype.h>
25  #include <sys/types.h>  #include <sys/types.h>
26  #include <sys/stat.h>  #include <sys/stat.h>
27  #include <unistd.h>  #include <unistd.h>
# Line 60  void clrline(int line_begin, int line_en Line 64  void clrline(int line_begin, int line_en
64    
65  void clrtobot(int line_begin)  void clrtobot(int line_begin)
66  {  {
67          clrline(line_begin, screen_lines);          //clrline(line_begin, screen_lines);
68          moveto(line_begin, 0);          moveto(line_begin, 0);
69            prints("\033[J");
70    
71            moveto(line_begin, 0);
72    
73            iflush();
74  }  }
75    
76  void clearscr()  void clearscr()
# Line 99  void set_input_echo(int echo) Line 108  void set_input_echo(int echo)
108          }          }
109  }  }
110    
111  int _str_input(char *buffer, int buffer_length, int echo_mode)  static int _str_input(char *buffer, int buffer_length, int echo_mode)
112  {  {
113          char buf[256], ch;          char buf[256], ch;
114          int c, offset = 0, len, loop = 1, i, hz = 0;          int c, offset = 0, len, loop = 1, i, hz = 0;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1