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
12 #ifndef MC__CONS_SAVER_H
13 #define MC__CONS_SAVER_H
15 /*** typedefs(not structures) and defined constants **********************************************/
17 /*** enums ***************************************************************************************/
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 */