Move termios changes into the interactive block