Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] When using "default" in colors.yaml or colormap.rb, sup throws an  exception
@ 2009-01-29 21:45 Chris Benuzzi
  2009-03-25 12:33 ` William Morgan
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Benuzzi @ 2009-01-29 21:45 UTC (permalink / 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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [sup-talk] When using "default" in colors.yaml or colormap.rb, sup throws an exception
  2009-01-29 21:45 [sup-talk] When using "default" in colors.yaml or colormap.rb, sup throws an exception Chris Benuzzi
@ 2009-03-25 12:33 ` William Morgan
  0 siblings, 0 replies; 2+ messages in thread
From: William Morgan @ 2009-03-25 12:33 UTC (permalink / raw)


Reformatted excerpts from Chris Benuzzi's message of 2009-01-29:
> I'm using a transparent terminal and would like to get sup's
> background color set to "default".

This should be fixed in git next. Check it out.
-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-25 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-29 21:45 [sup-talk] When using "default" in colors.yaml or colormap.rb, sup throws an exception Chris Benuzzi
2009-03-25 12:33 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox