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

Annotation of /lbbs/include/screen.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations)
Thu May 29 13:17:33 2025 UTC (9 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.9: +3 -1 lines
Content type: text/x-chdr
Refact display_file_ex()

1 sysadm 1.1 /***************************************************************************
2     screen.h - description
3     -------------------
4 sysadm 1.3 copyright : (C) 2004-2025 by Leaflet
5 sysadm 1.1 email : leaflet@leafok.com
6     ***************************************************************************/
7    
8     /***************************************************************************
9     * *
10     * 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 *
12 sysadm 1.3 * the Free Software Foundation; either version 3 of the License, or *
13 sysadm 1.1 * (at your option) any later version. *
14     * *
15     ***************************************************************************/
16    
17     #ifndef _SCREEN_H_
18     #define _SCREEN_H_
19    
20 sysadm 1.7 #define CTRL_SEQ_CLR_LINE "\033[K"
21    
22 sysadm 1.1 extern void moveto(int row, int col);
23    
24     extern void clrtoeol();
25    
26     extern void clrline(int line_begin, int line_end);
27    
28     extern void clrtobot(int line_begin);
29    
30     extern void clearscr();
31    
32     extern int press_any_key();
33    
34     extern void set_input_echo(int echo);
35    
36     extern int str_input(char *buffer, int buffer_length, int echo_mode);
37    
38     extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode);
39    
40 sysadm 1.10 extern int display_data(const void *p_data, long line_total, const long *p_line_offsets, int begin_line, int wait);
41    
42     extern int display_file(const char *filename, int begin_line, int wait);
43 sysadm 1.1
44 sysadm 1.9 extern int show_top(const char *str_left, const char *str_center, const char *str_right);
45 sysadm 1.1
46 sysadm 1.6 extern int show_bottom(const char *msg);
47 sysadm 1.1
48     extern int show_active_board();
49    
50     #endif //_SCREEN_H_

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