Home | History | Annotate | Download | only in common_lib

Lines Matching refs:tty

75     import tty
303 of bytes that Pexpect will try to read from a TTY at one time. Setting
608 """This makes the pseudo-terminal the controlling tty. This should be
614 # Disconnect from controlling tty if still connected.
615 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY);
621 # Verify we are disconnected from controlling tty
623 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY);
626 raise ExceptionPexpect, "Error! We are not disconnected from a controlling tty."
628 # Good! We are disconnected from a controlling tty.
638 # Verify we now have a controlling tty.
639 fd = os.open("/dev/tty", os.O_WRONLY)
641 raise ExceptionPexpect, "Error! Could not open controlling tty, /dev/tty"
681 tty(-like) device, else False. """
736 p.sendline ('1234') # We will see this twice (once from tty echo and again from cat).
739 p.setecho(False) # Turn off tty echo
749 p.sendline ('1234') # We will see this twice (once from tty echo and again from cat).
750 p.setecho(False) # Turn off tty echo
879 because this is what the pseudo tty device returns. So contrary to what
1419 """This returns the terminal window size of the child tty. The return
1429 """This sets the terminal window size of the child tty. This will cause
1431 physical window size. It changes the size reported to TTY-aware
1489 mode = tty.tcgetattr(self.STDIN_FILENO)
1490 tty.setraw(self.STDIN_FILENO)
1494 tty.tcsetattr(self.STDIN_FILENO, tty.TCSAFLUSH, mode)