Set line buffering in text I/O wrappers when wrapping a tty
dx sh should catch BaseException