Pcolumns
Bun

property

tty.WriteStream.columns

columns: number

A number specifying the number of columns the TTY currently has. This property is updated whenever the 'resize' event is emitted.