This commit is contained in:
Kovid Goyal 2025-07-13 07:37:47 +05:30
parent 799ba8d178
commit 9700a96f02
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -100,7 +100,7 @@ code to demonstrate its use
buf = array.array('H', [0, 0, 0, 0])
fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, buf)
print((
'number of rows: {} number of columns: {}'
'number of rows: {} number of columns: {} '
'screen width: {} screen height: {}').format(*buf))
.. tab:: Go