On 1/15/07, Jeremy Hinegardner <jeremy / hinegardner.org> wrote: > On Mon, Jan 15, 2007 at 04:45:48PM +0900, Bonh?te Andr? wrote: > > Hi! > > > > On 15.01.2007, at 04:15, Jeremy Hinegardner wrote: > > > > >keybox version 1.0.0 has been released. > > > > > > http://keybox.rubyforge.org > > > > > >Keybox is a set of command line applications and ruby libraries for > > >secure password storage and password generation. > > > > Nice, but it looks terrible on my whiteish terminal. Is there an easy > > way to change the colors? > > Not from a user-configurable standpoint. But its a great idea so I'll > put it on the feature tracker. Hmm... that could make a good separate > library on its own. I may have to do that. You don't have to :) require "highline/import" # Supported color sequences. colors = %w{black red green yellow blue magenta cyan white} # Using color() with symbols. colors.each_with_index do |c, i| say("This should be <%= color('#{c}', :#{c}) %>!") if i == 0 say( "This should be " + "<%= color('white on #{c}', :white, :on_#{c}) %>!") else say( "This should be " + "<%= color( '#{colors[i - 1]} on #{c}', :#{colors[i - 1]}, :on_#{c} ) %>!") end end # Using color with constants. say("This should be <%= color('bold', BOLD) %>!") say("This should be <%= color('underlined', UNDERLINE) %>!") # Using constants only. say("This might even <%= BLINK %>blink<%= CLEAR %>!") # It even works with list wrapping. erb_digits = %w{Zero One Two Three Four} + ["<%= color('Five', :blue) %%>"] + %w{Six Seven Eight Nine} say("<%= list(#{erb_digits.inspect}, :columns_down, 3) %>")