/[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.83 by sysadm, Sat May 31 01:37:18 2025 UTC Revision 1.84 by sysadm, Sat May 31 01:58:22 2025 UTC
# Line 322  int display_data(const void *p_data, lon Line 322  int display_data(const void *p_data, lon
322                                  case KEY_TIMEOUT:                                  case KEY_TIMEOUT:
323                                          goto cleanup;                                          goto cleanup;
324                                  case KEY_HOME:                                  case KEY_HOME:
325                                            if (line_current - line < 0) // Reach top
326                                            {
327                                                    break;
328                                            }
329                                          line_current = 0;                                          line_current = 0;
330                                          line = begin_line;                                          line = begin_line;
331                                          max_lines = SCREEN_ROWS - 1;                                          max_lines = SCREEN_ROWS - 1;
332                                          clrline(begin_line, SCREEN_ROWS);                                          clrline(begin_line, SCREEN_ROWS);
333                                          break;                                          break;
334                                  case KEY_END:                                  case KEY_END:
335                                          line_current = line_total - (SCREEN_ROWS - 2);                                          if (line_total < SCREEN_ROWS - 2)
                                         if (line_current < 0)  
336                                          {                                          {
337                                                  line_current = 0;                                                  break;
338                                          }                                          }
339                                            line_current = line_total - (SCREEN_ROWS - 2);
340                                          line = begin_line;                                          line = begin_line;
341                                          max_lines = SCREEN_ROWS - 1;                                          max_lines = SCREEN_ROWS - 1;
342                                          clrline(begin_line, SCREEN_ROWS);                                          clrline(begin_line, SCREEN_ROWS);


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

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