/[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.14 by sysadm, Tue Mar 22 13:36:13 2005 UTC Revision 1.16 by sysadm, Fri May 6 15:48:44 2005 UTC
# Line 62  clrline (int line_begin, int line_end) Line 62  clrline (int line_begin, int line_end)
62  }  }
63    
64  void  void
65    clrtobot (int line_begin)
66    {
67      clrline (line_begin, screen_lines);
68      moveto (line_begin, 0);
69    }
70    
71    void
72  clearscr ()  clearscr ()
73  {  {
74    prints ("\33[2J");    prints ("\33[2J");
# Line 161  str_input (char *buffer, int buffer_leng Line 168  str_input (char *buffer, int buffer_leng
168  }  }
169    
170  int  int
171    get_data (int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode)
172    {
173      int len;
174    
175      moveto (row, col);
176      iflush ();
177      prints (prompt);
178      prints (buffer);
179      iflush ();
180    
181      len = str_input (buffer, buffer_length, echo_mode);
182      
183      return len;
184    }
185    
186    int
187  display_file (const char *filename)  display_file (const char *filename)
188  {  {
189    char buffer[260];    char buffer[260];


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

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