writeStream.getWindowSize()
- 返回: <number[]>
writeStream.getWindowSize() 返回此 WriteStream 对应的终端的尺寸。
该数组的类型为 [numColumns, numRows],其中 numColumns 和 numRows 表示相应终端中的列数和行数。
- Returns: <number[]>
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.