Merge branch '2121_dir_symlink'
[kaloumi3.git] / src / consaver / cons.saver.h
blob32ad3d52a74ca84cc9f9dadcf6a8f3720f5f991e
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 extern int cons_saver_pid;
33 #endif /* !LINUX_CONS_SAVER_C */
35 #endif