mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 18:50:12 +01:00
19 lines
548 B
Ruby
19 lines
548 B
Ruby
#!/usr/local/bin/ruby -w
|
|
|
|
# overwrite.rb
|
|
#
|
|
# Created by Jeremy Hinegardner on 2007-01-24
|
|
# Copyright 2007 Jeremy Hinegardner. All rights reserved
|
|
|
|
require 'rubygems'
|
|
require 'highline/import'
|
|
|
|
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
|
|
end
|
|
say("<%= color('Look! blanked out!', GREEN) %>")
|