Rudiments: /home/dmuse/src/rudiments/include/rudiments/prompt.h Source File

Rudiments

- Main Page
- Classes

prompt.h
1 // Copyright (c) 2016 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_PROMPT_H
5 #define RUDIMENTS_PROMPT_H
6
7 #include <rudiments/private/promptincludes.h>
8
9 class promptprivate;
10
17 class RUDIMENTS_DLLSPEC prompt {
18 public:
19
21 prompt();
22
26 virtual ~prompt();
27
34 void setHistoryFile(const char *filename);
35
38 const char *getHistoryFile();
39
52 void setMaxHistoryLines(uint32_t lines);
53
56 uint32_t getMaxHistoryLines();
57
71 void setMaxHistoryQueue(uint32_t queue);
72
76 uint32_t getMaxHistoryQueue();
77
80 void setPrompt(const char *prompt);
81
84 const char *getPrompt();
85
95 char *read();
96
99 void flushHistory();
100
101 #include <rudiments/private/prompt.h>
102 };
103
104 #endif
prompt
Definition: prompt.h:17