Rudiments

prompt.h
1 // Copyright (c) 1999-2018 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
prompt
Definition: prompt.h:15
prompt::getPrompt
const char * getPrompt()
prompt::setMaxHistoryQueue
void setMaxHistoryQueue(uint32_t queue)
prompt::~prompt
virtual ~prompt()
prompt::flushHistory
void flushHistory()
prompt::getHistoryFile
const char * getHistoryFile()
prompt::getMaxHistoryLines
uint32_t getMaxHistoryLines()
prompt::setHistoryFile
void setHistoryFile(const char *filename)
prompt::read
char * read()
prompt::getMaxHistoryQueue
uint32_t getMaxHistoryQueue()
prompt::prompt
prompt()
prompt::setMaxHistoryLines
void setMaxHistoryLines(uint32_t lines)
prompt::setPrompt
void setPrompt(const char *prompt)