27 #ifndef SHELL_INTERACTION_HPP 28 #define SHELL_INTERACTION_HPP 37 #include "../my_config.h" 58 shell_interaction(ostream *out, ostream *interact,
bool silent);
61 shell_interaction(
const shell_interaction & ref);
66 void change_non_interactive_output(ostream *out);
67 void read_char(
char & a);
68 void set_beep(
bool mode) { beep = mode; };
77 enum mode { m_initial, m_inter, m_noecho };
87 termios initial_noecho;
90 void set_term_mod(mode m);
94 static const U_I bufsize;
96 static bool interaction_pause(
const string &message,
void *context);
97 static void interaction_warning(
const string & message,
void *context);
98 static string interaction_string(
const string & message,
bool echo,
void *context);
99 static secu_string interaction_secu_string(
const string & message,
bool echo,
void *context);
This is a pure virtual class that is used by libdar when interaction with the user is required...
full implemented class for user_interaction based on callback functions.
defines the interaction between libdar and the user.Three classes are defined
exception used when memory has been exhausted
libdar namespace encapsulate all libdar symbols