Creates a pseudo-tty device and starts a shell inside. Then it filters user input to provide input methods.