diff options
Diffstat (limited to 'host/examples/ascii_art_dft.hpp')
-rw-r--r-- | host/examples/ascii_art_dft.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/host/examples/ascii_art_dft.hpp b/host/examples/ascii_art_dft.hpp index 7dddad42e..fe411e400 100644 --- a/host/examples/ascii_art_dft.hpp +++ b/host/examples/ascii_art_dft.hpp @@ -319,8 +319,12 @@ std::string dft_to_plot(const log_pwr_dft_type& dft_, #include <curses.h> #include <cstdlib> #include <iostream> +#include <thread> +#include <chrono> int main(void){ + using namespace std::chrono_literals; + initscr(); while (true){ @@ -343,8 +347,9 @@ int main(void){ 12.5e4, 2.45e9, 60, 0 ).c_str()); + refresh(); - sleep(1); + std::this_thread::sleep_for(1s); } |