From 28e9f5e40e851de080247c46012860ff6c0271ce Mon Sep 17 00:00:00 2001 From: cabelo Date: Sat, 23 Mar 2019 14:04:03 -0300 Subject: [PATCH] null values --- src/main/cpp/tiv.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/cpp/tiv.cpp b/src/main/cpp/tiv.cpp index c471dc5..a3975fb 100644 --- a/src/main/cpp/tiv.cpp +++ b/src/main/cpp/tiv.cpp @@ -420,6 +420,7 @@ int main(int argc, char* argv[]) { struct winsize w; ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + //If redirect STDOUT to one file if(w.ws_col == 0 && w.ws_col == 0) ioctl(0, TIOCGWINSZ, &w);