support piping the output of client_test to a file or other process
This commit is contained in:
parent
1a927787b1
commit
bfe5dc798c
|
@ -1535,7 +1535,9 @@ int main(int argc, char* argv[])
|
|||
#ifndef _WIN32
|
||||
{
|
||||
winsize size;
|
||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, (char*)&size);
|
||||
int ret = ioctl(STDOUT_FILENO, TIOCGWINSZ, (char*)&size);
|
||||
if (ret == 0)
|
||||
{
|
||||
terminal_width = size.ws_col;
|
||||
terminal_height = size.ws_row;
|
||||
|
||||
|
@ -1544,6 +1546,7 @@ int main(int argc, char* argv[])
|
|||
if (terminal_height < 25)
|
||||
terminal_height = 25;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// loop through the alert queue to see if anything has happened.
|
||||
|
|
Loading…
Reference in New Issue