Fix of mouse and ca capabilities check.
[midnight-commander.git] / src / consaver / cons.saver.h
blobf2d5fef6772f5da5a4133bf73fc531636f2d3136
1 /** \file cons.saver.h
2 * \brief Header: general purpose Linux console screen save/restore server
4 * This code does _not_ need to be setuid root. However, it needs
5 * read/write access to /dev/vcsa* (which is priviledged
6 * operation). You should create user vcsa, make cons.saver setuid
7 * user vcsa, and make all vcsa's owned by user vcsa.
8 * Seeing other peoples consoles is bad thing, but believe me, full
9 * root is even worse.
12 #ifndef MC__CONS_SAVER_H
13 #define MC__CONS_SAVER_H
15 /*** typedefs(not structures) and defined constants **********************************************/
17 /*** enums ***************************************************************************************/
19 enum
21 CONSOLE_INIT = '1',
22 CONSOLE_DONE,
23 CONSOLE_SAVE,
24 CONSOLE_RESTORE,
25 CONSOLE_CONTENTS
28 /*** structures declarations (and typedefs of structures)*****************************************/
30 /*** global variables defined in .c file *********************************************************/
32 #ifndef LINUX_CONS_SAVER_C
33 /* Used only in mc, not in cons.saver */
34 extern signed char console_flag;
35 extern int cons_saver_pid;
36 #endif /* !LINUX_CONS_SAVER_C */
38 /*** declarations of public functions ************************************************************/
40 #ifndef LINUX_CONS_SAVER_C
41 /* Used only in mc, not in cons.saver */
42 void show_console_contents (int starty, unsigned char begin_line, unsigned char end_line);
43 void handle_console (unsigned char action);
44 #endif /* !LINUX_CONS_SAVER_C */
46 /*** inline functions ****************************************************************************/
47 #endif /* MC__CONS_SAVER_H */