/[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.14 by sysadm, Sun Jun 8 09:25:24 2025 UTC Revision 1.16 by sysadm, Wed Jul 2 04:17:33 2025 UTC
# Line 20  Line 20 
20  #include <stddef.h>  #include <stddef.h>
21    
22  #define CTRL_SEQ_CLR_LINE "\033[K"  #define CTRL_SEQ_CLR_LINE "\033[K"
23  #define MSG_EXT_MAX_LEN 200  #define MSG_EXT_MAX_LEN 400
24    
25  struct display_ctx_t  struct display_ctx_t
26  {  {
27          int reach_begin; // of data     int reach_begin;
28          int reach_end; // of data     int reach_end;
29     long line_top; // current screen     long line_top;
30     long line_bottom; // current screen     long line_bottom;
31     char msg[MSG_EXT_MAX_LEN];     char msg[MSG_EXT_MAX_LEN];
32  };  };
33  typedef struct display_ctx_t DISPLAY_CTX;  typedef struct display_ctx_t DISPLAY_CTX;
# Line 45  extern int press_any_key(); Line 45  extern int press_any_key();
45  extern void set_input_echo(int echo);  extern void set_input_echo(int echo);
46    
47  extern int str_input(char *buffer, int buffer_length, int echo_mode);  extern int str_input(char *buffer, int buffer_length, int echo_mode);
48  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 max_display_len, int echo_mode);
49    
50  // eof_exit = 0 : Do not exit at EOF  // eof_exit = 0 : Do not exit at EOF
51  //            1 : Prompt for any key at EOF, then exit  //            1 : Prompt for any key at EOF, then exit


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

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