diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-01 22:45:50 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-01 22:45:50 +0100 |
commit | 535848aeafba48cf7c3729fb2e5f15f12acf123a (patch) | |
tree | 05ed5f5c8c968334c069fe61f4806f76376c064c | |
parent | 6149ed650b00dde6b91679880ce8cec66c729f8c (diff) |
cin.get() -> usleep()
-rw-r--r-- | main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); } |