aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-01 22:45:50 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-01 22:45:50 +0100
commit535848aeafba48cf7c3729fb2e5f15f12acf123a (patch)
tree05ed5f5c8c968334c069fe61f4806f76376c064c
parent6149ed650b00dde6b91679880ce8cec66c729f8c (diff)
cin.get() -> usleep()
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 6db9cd5..736845a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -3,6 +3,7 @@
#include <vector>
#include <string>
#include <unordered_map>
+#include <unistd.h>
#include <cstdlib>
#include <array>
#include <cctype>
@@ -251,7 +252,7 @@ int main(int argc,char **argv){
world.print();
for(int i=0;i<C::autoTimeout;i++){
world.tick();
- cin.get();
+ usleep(3000);
cout<<"\x1B[2J\x1B[H";
world.print();
}