diff options
Diffstat (limited to 'examples/overwrite.rb')
-rw-r--r-- | examples/overwrite.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/overwrite.rb b/examples/overwrite.rb index f3c9754..6ff8126 100644 --- a/examples/overwrite.rb +++ b/examples/overwrite.rb @@ -1,12 +1,13 @@ #!/usr/bin/env ruby +# encoding: utf-8 # overwrite.rb # # Created by Jeremy Hinegardner on 2007-01-24 # Copyright 2007 Jeremy Hinegardner. All rights reserved -require 'rubygems' -require 'highline/import' +require "rubygems" +require "highline/import" puts "Using: #{HighLine.default_instance.terminal.class}" puts @@ -15,8 +16,8 @@ prompt = "here is your password:" ask( "#{prompt} <%= color('mypassword', RED, BOLD) %> (Press Any Key to blank) " ) do |q| - q.overwrite = true - q.echo = false # overwrite works best when echo is false. - q.character = true # if this is set to :getc then overwrite does not work + q.overwrite = true + q.echo = false # overwrite works best when echo is false. + q.character = true # if this is set to :getc then overwrite does not work end say("<%= color('Look! blanked out!', GREEN) %>") |