Supress stty error message for no-terminal

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Gistore v1.0.0-rc1

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>