mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
...
This commit is contained in:
@@ -100,7 +100,7 @@ code to demonstrate its use
|
|||||||
buf = array.array('H', [0, 0, 0, 0])
|
buf = array.array('H', [0, 0, 0, 0])
|
||||||
fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, buf)
|
fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, buf)
|
||||||
print((
|
print((
|
||||||
'number of rows: {} number of columns: {}'
|
'number of rows: {} number of columns: {} '
|
||||||
'screen width: {} screen height: {}').format(*buf))
|
'screen width: {} screen height: {}').format(*buf))
|
||||||
|
|
||||||
.. tab:: Go
|
.. tab:: Go
|
||||||
|
|||||||
Reference in New Issue
Block a user