writeStream.getWindowSize()


writeStream.getWindowSize() 返回此 WriteStream 对应的终端的尺寸。 该数组的类型为 [numColumns, numRows],其中 numColumnsnumRows 表示相应终端中的列数和行数。

writeStream.getWindowSize() returns the size of the TTY corresponding to this WriteStream. The array is of the type [numColumns, numRows] where numColumns and numRows represent the number of columns and rows in the corresponding TTY.