diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-07-17 19:09:50 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-07-17 19:09:53 -0300 |
commit | 85f0c933f6ac5de94824cfb7a6d4444e435e3456 (patch) | |
tree | e7f5f1489475e681fadee14d85dc4218f39eed0f /examples/limit.rb | |
parent | b336e2fe3535225142215e33ad9f6ffa2b7a6eb4 (diff) | |
download | highline-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/limit.rb')
-rw-r--r-- | examples/limit.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/limit.rb b/examples/limit.rb index 8b4d190..6d25cef 100644 --- a/examples/limit.rb +++ b/examples/limit.rb @@ -8,5 +8,8 @@ require "rubygems" require "highline/import" +puts "Using: #{$terminal.terminal.class}" +puts + text = ask("Enter text (max 10 chars): ") { |q| q.limit = 10 } puts "You entered: #{text}!" |