fixed terminal width underflow bug in client_test
This commit is contained in:
parent
cdf05a9c9c
commit
37d9c8d329
|
@ -1176,6 +1176,9 @@ int main(int argc, char* argv[])
|
|||
winsize size;
|
||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, (char*)&size);
|
||||
terminal_width = size.ws_col;
|
||||
|
||||
if (terminal_width < 64)
|
||||
terminal_width = 64;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue