We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33a856f commit 72abd2aCopy full SHA for 72abd2a
1 file changed
src/nix/ps.cc
@@ -137,7 +137,7 @@ struct CmdPs : MixJSON, StoreCommand
137
}
138
139
140
- auto width = isTTY() ? getWindowWidth() : std::numeric_limits<unsigned int>::max();
+ auto width = isTTY() && isatty(STDOUT_FILENO) ? getWindowWidth() : std::numeric_limits<unsigned int>::max();
141
142
printTable(std::cout, table, width);
143
0 commit comments