/[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.21 by sysadm, Mon Apr 28 03:31:00 2025 UTC Revision 1.23 by sysadm, Tue Apr 29 14:04:10 2025 UTC
# Line 66  void clrtobot(int line_begin) Line 66  void clrtobot(int line_begin)
66    
67  void clearscr()  void clearscr()
68  {  {
69          prints("\33[2J");          prints("\033[2J");
70          moveto(0, 0);          moveto(0, 0);
71          iflush();          iflush();
72  }  }
# Line 112  int _str_input(char *buffer, int buffer_ Line 112  int _str_input(char *buffer, int buffer_
112          while (c = igetch_t(60))          while (c = igetch_t(60))
113          {          {
114                  if (c == KEY_NULL || c == KEY_TIMEOUT || c == CR)                  if (c == KEY_NULL || c == KEY_TIMEOUT || c == CR)
115                    {
116                          break;                          break;
117                    }
118                  if (c == LF)                  if (c == LF)
119                    {
120                          continue;                          continue;
121                    }
122                  if (c == BACKSPACE)                  if (c == BACKSPACE)
123                  {                  {
124                          if (offset > 0)                          if (offset > 0)


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

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