Chris Benuzzi
2009-Jan-29 21:45 UTC
[sup-talk] When using "default" in colors.yaml or colormap.rb, sup throws an exception
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)
William Morgan
2009-Mar-25 12:33 UTC
[sup-talk] When using "default" in colors.yaml or colormap.rb, sup throws an exception
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>