summaryrefslogtreecommitdiff
path: root/examples/get_character.rb
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-07-17 19:09:50 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-07-17 19:09:53 -0300
commit85f0c933f6ac5de94824cfb7a6d4444e435e3456 (patch)
treee7f5f1489475e681fadee14d85dc4218f39eed0f /examples/get_character.rb
parentb336e2fe3535225142215e33ad9f6ffa2b7a6eb4 (diff)
downloadhighline-85f0c933f6ac5de94824cfb7a6d4444e435e3456.tar.gz
Advertise what Terminal class in use at tests and examples
So one could easily figure out if the "auto-detection" is not working.
Diffstat (limited to 'examples/get_character.rb')
-rw-r--r--examples/get_character.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/get_character.rb b/examples/get_character.rb
index c22d412..48e4dba 100644
--- a/examples/get_character.rb
+++ b/examples/get_character.rb
@@ -3,6 +3,9 @@
require "rubygems"
require "highline/import"
+puts "Using: #{$terminal.terminal.class}"
+puts
+
choices = "ynaq"
answer = ask("Your choice [#{choices}]? ") do |q|
q.echo = false