10 usage: squish-pty COMMAND [ARG]...
11 Squishes both stdin and stdout into a single pseudoterminal and
12 passes it as stdin and stdout to the specified COMMAND.
16 status = pty.spawn(args[1:])
17 if os.WIFEXITED(status):
18 return os.WEXITSTATUS(status)
19 elif os.WIFSIGNALED(status):
20 signal.raise_signal(os.WTERMSIG(status))
24 if __name__ == '__main__':
25 sys.exit(main(sys.argv))