Thursday, January 3, 2013

python で ioctl の値取得

python で ioctl の値取得
>>> import struct,termios,fcntl
>>> struct.unpack("HH", fcntl.ioctl(0, termios.TIOCGWINSZ, "    "))
(33, 108)

No comments:

Post a Comment