444 Failed

Thursday, January 3, 2013

python で ioctl の値取得

python で ioctl の値取得
>>> import struct,termios,fcntl
>>> struct.unpack("HH", fcntl.ioctl(0, termios.TIOCGWINSZ, "    "))
(33, 108)
Posted by sikaku444 at 10:17 PM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

sikaku444
twitter
View my complete profile

Blog Archive

  • ▼  2013 (2)
    • ►  March (1)
    • ▼  January (1)
      • python で ioctl の値取得
  • ►  2012 (2)
    • ►  January (2)
  • ►  2011 (5)
    • ►  November (2)
    • ►  August (1)
    • ►  March (1)
    • ►  February (1)
  • ►  2010 (20)
    • ►  December (2)
    • ►  November (1)
    • ►  October (1)
    • ►  August (4)
    • ►  July (2)
    • ►  June (2)
    • ►  May (2)
    • ►  April (6)
Simple theme. Powered by Blogger.