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 
15 class RUDIMENTS_DLLSPEC prompt {
16  public:
17 
19  prompt();
20 
24  virtual ~prompt();
25 
32  void setHistoryFile(const char *filename);
33 
36  const char *getHistoryFile();
37 
50  void setMaxHistoryLines(uint32_t lines);
51 
54  uint32_t getMaxHistoryLines();
55 
69  void setMaxHistoryQueue(uint32_t queue);
70 
74  uint32_t getMaxHistoryQueue();
75 
78  void setPrompt(const char *prompt);
79 
82  const char *getPrompt();
83 
98  char *read();
99 
102  void flushHistory();
103 
104  #include <rudiments/private/prompt.h>
105 };
106 
107 #endif
Definition: prompt.h:15