If my program is passed to another program on the command line, is there a way to determine its width?
I work in Node if it is relevant, although any general POSIX solution is welcome (I can figure out how to transfer it to my environment myself). I can currently use process.stdout.columnsin Node; but associated with process.stdout, which in this case is transmitted over the channels.
source
share