2024-04-26 14:43:37 发布
网友
我想知道终端的尺寸。我正在使用此功能:
import sys, struct, fcntl, termios s = struct.pack('HHHH', 0, 0, 0, 0) t = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, s) print(struct.unpack('HHHH', t))
但是termios.TIOCGWINSZ到底是什么呢?
termios.TIOCGWINSZ
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐