Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Feb 24, 2023
1 parent 2ab5f7c commit 8c8840b
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions cycle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
#include <string.h>
#include <csignal>
#include <fstream>

#include <unistd.h>


#ifdef _WIN32
#include <conio.h>
#else
#include <stdio.h>
#define clrscr() printf("\e[1;1H\e[2J")
#endif

#ifndef PROM
//#include <arpa/inet.h>
#endif
Expand Down Expand Up @@ -482,8 +489,15 @@ void CGenCycleRated::loop()


if (params->bstdout)
{
if (lines_counter % 24 == 0)
//system ("clear");
clrscr();

std::cout << log_string << "\n";

}

if (! file_out_error && ! no_free_space)
{
file_out << log_string << "\n";
Expand Down Expand Up @@ -625,7 +639,14 @@ void CGenCycleUnrated::loop()


if (params->bstdout)
std::cout << log_string << "\n";
{
if (lines_counter % 24 == 0)
// system ("clear");
clrscr();

std::cout << log_string << "\n";
}


if (! file_out_error && ! no_free_space)
{
Expand Down

0 comments on commit 8c8840b

Please sign in to comment.