# frozen_string_literal: true

require_relative "../lib/tty-prompt"

prompt = TTY::Prompt.new

prompt.ask('What is your name?', default: ENV['USER'])

# frozen_string_literal: true

require "pastel"
require_relative "../lib/tty-prompt"

prompt = TTY::Prompt.new
pastel = Pastel.new
notice = pastel.cyan.bold.detach

prompt.ask("What is your name?", default: ENV["USER"],
           active_color: notice, help_color: notice)

Change example to show color configuration with a callable object
Change example to show color configuration with a callable object
