/[LeafOK_CVS]/lbbs/include/screen.h
ViewVC logotype

Diff of /lbbs/include/screen.h

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

Revision 1.2 by sysadm, Fri May 2 03:34:58 2025 UTC Revision 1.12 by sysadm, Fri May 30 12:51:00 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2                              screen.h  -  description                              screen.h  -  description
3                               -------------------                               -------------------
4      begin                : Mon Oct 18 2004      copyright            : (C) 2004-2025 by Leaflet
     copyright            : (C) 2004 by Leaflet  
5      email                : leaflet@leafok.com      email                : leaflet@leafok.com
6   ***************************************************************************/   ***************************************************************************/
7    
# Line 10  Line 9 
9   *                                                                         *   *                                                                         *
10   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
11   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
12   *   the Free Software Foundation; either version 2 of the License, or     *   *   the Free Software Foundation; either version 3 of the License, or     *
13   *   (at your option) any later version.                                   *   *   (at your option) any later version.                                   *
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
# Line 18  Line 17 
17  #ifndef _SCREEN_H_  #ifndef _SCREEN_H_
18  #define _SCREEN_H_  #define _SCREEN_H_
19    
20  extern int screen_rows;  #include <stddef.h>
 extern int screen_cols;  
21    
22  extern void moveto(int row, int col);  #define CTRL_SEQ_CLR_LINE "\033[K"
23    
24  extern void clrtoeol();  typedef int (*display_data_key_handler)(int *key, char *msg, size_t msg_len);
25    
26    extern void moveto(int row, int col);
27    extern void clrtoeol();
28  extern void clrline(int line_begin, int line_end);  extern void clrline(int line_begin, int line_end);
   
29  extern void clrtobot(int line_begin);  extern void clrtobot(int line_begin);
   
30  extern void clearscr();  extern void clearscr();
31    
32  extern int press_any_key();  extern int press_any_key();
# Line 36  extern int press_any_key(); Line 34  extern int press_any_key();
34  extern void set_input_echo(int echo);  extern void set_input_echo(int echo);
35    
36  extern int str_input(char *buffer, int buffer_length, int echo_mode);  extern int str_input(char *buffer, int buffer_length, int echo_mode);
   
37  extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode);  extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode);
38    
39  extern int display_file(const char *filename);  // eof_exit = 0 : Do not exit at EOF
40    //            1 : Prompt for any key at EOF, then exit
41  extern int display_file_ex(const char *filename, int begin_line, int wait);  //            2 : Exit at EOF without prompt
42    extern int display_data(const void *p_data, long line_total, const long *p_line_offsets, int begin_line, int eof_exit,
43  extern int show_top(char *status);                          display_data_key_handler key_handler, const char *help_filename);
44    extern int display_file(const char *filename, int begin_line, int eof_exit);
45    
46  extern int show_bottom(char *msg);  extern int show_top(const char *str_left, const char *str_center, const char *str_right);
47    extern int show_bottom(const char *msg);
48    
49  extern int show_active_board();  extern int show_active_board();
50    


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

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