Drop STDERR of stty.

This commit is contained in:
anseki 2015-03-02 02:00:20 +09:00
parent 0c784f6533
commit c33a9d77cd
2 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,12 @@
if [ "$1" = "noechoback" ]; then if [ "$1" = "noechoback" ]; then
stty --file=/dev/tty -echo echonl || stty -F /dev/tty -echo echonl || stty -f /dev/tty -echo echonl || exit 1 stty --file=/dev/tty -echo echonl 2>/dev/null || \
stty -F /dev/tty -echo echonl 2>/dev/null || \
stty -f /dev/tty -echo echonl 2>/dev/null || \
exit 1
IFS= read -r INPUT </dev/tty IFS= read -r INPUT </dev/tty
stty --file=/dev/tty echo -echonl || stty -F /dev/tty echo -echonl || stty -f /dev/tty echo -echonl stty --file=/dev/tty echo -echonl 2>/dev/null || \
stty -F /dev/tty echo -echonl 2>/dev/null || \
stty -f /dev/tty echo -echonl 2>/dev/null
# printf '\n' >/dev/tty # printf '\n' >/dev/tty
else else
IFS= read -r INPUT </dev/tty IFS= read -r INPUT </dev/tty

View file

@ -1,6 +1,6 @@
{ {
"name": "readline-sync", "name": "readline-sync",
"version": "0.7.0", "version": "0.7.1",
"title": "readlineSync", "title": "readlineSync",
"description": "Synchronous Readline", "description": "Synchronous Readline",
"keywords": [ "keywords": [