aboutsummaryrefslogtreecommitdiff
path: root/CST 126/Homework 1/clear.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST 126/Homework 1/clear.hpp')
-rw-r--r--CST 126/Homework 1/clear.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/CST 126/Homework 1/clear.hpp b/CST 126/Homework 1/clear.hpp
new file mode 100644
index 0000000..7adbb79
--- /dev/null
+++ b/CST 126/Homework 1/clear.hpp
@@ -0,0 +1,23 @@
+#ifndef CLEAR_H
+#define CLEAR_H
+
+#include <iostream>
+
+using std::cout;
+using std::cin;
+
+inline void WaitEnter()
+{
+ char key;
+
+ cout << "\nPress any key and enter to continue...";
+ cin >> key;
+}
+
+inline void ClearScreen()
+{
+ cout << "\033[2J\033[1;1H";
+}
+
+
+#endif \ No newline at end of file