diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2023-04-25 21:10:52 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 21:10:52 -0300 |
commit | 51773ff795eea1683a8f210df056a974a8e51211 (patch) | |
tree | ce71b221d7f759d2e199a93e61d557905b6c7815 /lib/highline/terminal.rb | |
parent | b617304aef659d778bd0624e76640f4eaece9bda (diff) | |
parent | ec1885893dc2bb863b4858a110ad86abf7ee4612 (diff) | |
download | highline-51773ff795eea1683a8f210df056a974a8e51211.tar.gz |
Merge pull request #262 from kbrock/silent_tty
Do not call stty on non-tty
Diffstat (limited to 'lib/highline/terminal.rb')
-rw-r--r-- | lib/highline/terminal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/highline/terminal.rb b/lib/highline/terminal.rb index 550c0c7..bfa0d08 100644 --- a/lib/highline/terminal.rb +++ b/lib/highline/terminal.rb @@ -176,7 +176,7 @@ class HighLine # Saves terminal state using shell stty command. def save_stty @stty_save = begin - `stty -g`.chomp + `stty -g`.chomp if input.tty? rescue StandardError nil end |