コード例 #1
0
def tcsendbreak(space, w_fd, duration):
    fd = space.c_filedescriptor_w(w_fd)
    try:
        rtermios.tcsendbreak(fd, duration)
    except OSError, e:
        raise convert_error(space, e)
コード例 #2
0
ファイル: test_rtermios.py プロジェクト: mozillazg/pypy
 def runs_tcall():
     rtermios.tcsendbreak(2, 0)
     rtermios.tcdrain(2)
     rtermios.tcflush(2, rtermios.TCIOFLUSH)
     rtermios.tcflow(2, rtermios.TCOON)
     print "ok"
コード例 #3
0
ファイル: interp_termios.py プロジェクト: Darriall/pypy
def tcsendbreak(space, w_fd, duration):
    fd = space.c_filedescriptor_w(w_fd)
    try:
        rtermios.tcsendbreak(fd, duration)
    except OSError, e:
        raise convert_error(space, e)
コード例 #4
0
 def runs_tcall():
     rtermios.tcsendbreak(2, 0)
     rtermios.tcdrain(2)
     rtermios.tcflush(2, rtermios.TCIOFLUSH)
     rtermios.tcflow(2, rtermios.TCOON)
     print "ok"