Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: cbenuzzi@gmail.com (Chris Benuzzi)
Subject: [sup-talk] When using "default" in colors.yaml or colormap.rb, sup throws an 	exception
Date: Thu, 29 Jan 2009 15:45:24 -0600	[thread overview]
Message-ID: <dac0accd0901291345v5d811e87x10316ee886bc7752@mail.gmail.com> (raw)

Hello.  First of all, thanks for this program!

I'm using a transparent terminal and would like to get sup's
background color set to "default".

So far, I have tried the following:

1. I created a colors.yaml file with the format:
  :label:
    :fg: yellow
    :bg: default
    :attrs: bold
2. When this gave no joy, I wiped colors.yaml and edited colormap.rb
directly, like:
:label => { :fg => "yellow", :bg => "default" }

I am able to set normal colors either way, an exception is only thrown
if I set any color to "default".
I have included the error message below, as well as any other relevant
info I can think of.
If you can give some suggestions on what else to check, or if you need
anything else, please let me know.
Thanks again for sup, and for your consideration.

Christopher Benuzzi

--- ArgumentError from thread: main
couldn't initialize curses color pair 4, -1 (key 1)
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/colormap.rb:130:in `color_for'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/colormap.rb:206:in `send'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/colormap.rb:206:in
`method_missing'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/buffer.rb:106:in `write'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/scroll-mode.rb:51:in
`draw'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/scroll-mode.rb:49:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/scroll-mode.rb:49:in
`draw'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/line-cursor-mode.rb:24:in
`draw'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/buffer.rb:97:in `draw'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/buffer.rb:294:in `draw_screen'
/usr/local/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup:153
/usr/local/bin/sup:19:in `load'
/usr/local/bin/sup:19

OS: Debian "Lenny" w/libncurses-ruby installed (Other curses and ruby
libs too, don't remember all.)
Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] installed from source
Terminal emulator:  aterm, invoked with "aterm -tr -trsb -sh 42 -fg white"

Additionally, (to get sup working) in
/home/splicer/ruby-1.8.7-p72/ext/curses I did:
ruby extconf.rb
make
make install

And here is my gem list:
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
daemons (1.0.10)
fastthread (1.0.1)
ferret (0.11.6)
gem_plugin (0.2.3)
gettext (1.93.0)
highline (1.5.0)
hoe (1.8.3)
lockfile (1.4.3)
mime-types (1.15)
mongrel (1.1.5)
mysql (2.7)
ncurses (0.9.1)
net-ssh (2.0.8)
rails (2.2.2)
rake (0.8.3)
rmail (1.0.0)
rubyforge (1.0.2)
sup (0.6)
trollop (1.10.2)
validates_timeliness (1.1.5)


             reply	other threads:[~2009-01-29 21:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-29 21:45 Chris Benuzzi [this message]
2009-03-25 12:33 ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dac0accd0901291345v5d811e87x10316ee886bc7752@mail.gmail.com \
    --to=cbenuzzi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox