summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift/StandardTerminal.h')
-rw-r--r--Sluift/StandardTerminal.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Sluift/StandardTerminal.h b/Sluift/StandardTerminal.h
new file mode 100644
index 0000000..f32bd1c
--- /dev/null
+++ b/Sluift/StandardTerminal.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2013-2017 Isode Limited.
+ * All rights reserved.
+ * See the COPYING file for more information.
+ */
+
+#pragma once
+
+#include <Sluift/Terminal.h>
+
+namespace Swift {
+ class StandardTerminal : public Terminal {
+ public:
+ StandardTerminal();
+ virtual ~StandardTerminal() override;
+
+ virtual boost::optional<std::string> readLine(const std::string& prompt) override;
+ virtual void printError(const std::string& message) override;
+ virtual void addToHistory(const std::string& command) override;
+ };
+}