#include #include #include #include #include #include int main() { // Init ncurses screen initscr(); // disable any character output noecho(); // hide cursor curs_set(0); while (true) { sleep(1); // clean up screen clear(); std::ifstream reading_file; reading_file.open("/tmp/fastnetmon.dat", std::ifstream::in); if (!reading_file.is_open()) { std::cout<<"Can't open fastnetmon stats file"; } std::string line = ""; std::stringstream screen_buffer; while ( getline(reading_file, line) ) { screen_buffer<