/[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.101 by sysadm, Wed Jun 18 02:29:54 2025 UTC Revision 1.103 by sysadm, Sun Jun 29 01:57:15 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
 #include "screen.h"  
17  #include "bbs.h"  #include "bbs.h"
18  #include "common.h"  #include "common.h"
 #include "str_process.h"  
 #include "log.h"  
 #include "io.h"  
19  #include "editor.h"  #include "editor.h"
20  #include "file_loader.h"  #include "file_loader.h"
21    #include "io.h"
22    #include "log.h"
23  #include "login.h"  #include "login.h"
24  #include <fcntl.h>  #include "screen.h"
25    #include "str_process.h"
26  #include <ctype.h>  #include <ctype.h>
27    #include <errno.h>
28    #include <fcntl.h>
29  #include <string.h>  #include <string.h>
 #include <unistd.h>  
30  #include <stdlib.h>  #include <stdlib.h>
31  #include <errno.h>  #include <unistd.h>
 #include <sys/types.h>  
 #include <sys/stat.h>  
32  #include <sys/param.h>  #include <sys/param.h>
33    #include <sys/stat.h>
34  #include <sys/shm.h>  #include <sys/shm.h>
35    #include <sys/types.h>
36    
37  #define ACTIVE_BOARD_HEIGHT 8  #define ACTIVE_BOARD_HEIGHT 8
38    
# Line 373  int display_data(const void *p_data, lon Line 373  int display_data(const void *p_data, lon
373                                          output_end_row = SCREEN_ROWS - 1;                                          output_end_row = SCREEN_ROWS - 1;
374                                          moveto(SCREEN_ROWS, 0);                                          moveto(SCREEN_ROWS, 0);
375                                          clrtoeol();                                          clrtoeol();
376                                          prints("\033[S"); // Scroll up 1 line                                          //prints("\033[S"); // Scroll up 1 line
377                                            prints("\n"); // Legacy Cterm only works with this line
378                                          break;                                          break;
379                                  case KEY_PGUP:                                  case KEY_PGUP:
380                                          if (line_current - output_current_row < 0) // Reach begin                                          if (line_current - output_current_row < 0) // Reach begin


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

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