lib/howzit/prompt.rb in howzit-2.0.28 vs lib/howzit/prompt.rb in howzit-2.0.29

- old
+ new

@@ -16,9 +16,11 @@ ## @return [Boolean] result ## def yn(prompt, default: true) return default unless $stdout.isatty + return true if Howzit.options[:yes] + return default if Howzit.options[:default] tty_state = `stty -g` system 'stty raw -echo cbreak isig' yn = color_single_options(default ? %w[Y n] : %w[y N])