Merge commit 'origin/340_inrorrect_handling_of_wildcards'
[midnight-commander.git] / src / cons.saver.h
blob64e49d7b7baf7c4ecedd14892d81adadb856e02e
2 /** \file cons.saver.h
3 * \brief Header: general purpose Linux console screen save/restore server
5 * This code does _not_ need to be setuid root. However, it needs
6 * read/write access to /dev/vcsa* (which is priviledged
7 * operation). You should create user vcsa, make cons.saver setuid
8 * user vcsa, and make all vcsa's owned by user vcsa.
9 * Seeing other peoples consoles is bad thing, but believe me, full
10 * root is even worse.
13 #ifndef MC_CONS_SAVER_H
14 #define MC_CONS_SAVER_H
16 enum {
17 CONSOLE_INIT = '1',
18 CONSOLE_DONE,
19 CONSOLE_SAVE,
20 CONSOLE_RESTORE,
21 CONSOLE_CONTENTS
24 #ifndef LINUX_CONS_SAVER_C
25 /* Used only in mc, not in cons.saver */
27 extern signed char console_flag;
29 void show_console_contents (int starty, unsigned char begin_line, unsigned char end_line);
30 void handle_console (unsigned char action);
32 void show_rxvt_contents (int starty, unsigned char y1, unsigned char y2);
33 int look_for_rxvt_extensions (void);
35 extern int cons_saver_pid;
36 #endif /* !LINUX_CONS_SAVER_C */
38 #endif