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