sh with tty, fix upper bug for kb