Rudiments
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 
100  char *read();
101 
104  void flushHistory();
105 
106  #include <rudiments/private/prompt.h>
107 };
108 
109 #endif
Definition: prompt.h:17