Subject: [sup-talk] Exception on start up

From: [email-masked] (Alex Gutteridge)
Date: Wed, 28 Nov 2007 18:17:11 +0900

This was thrown on OSX 10.5.1. Running iTerm 0.9.5.

--- ArgumentError from thread: main
couldn't initialize curses color pair 4, 0 (key 1)
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:88:in  
`color_for'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:112:in `send'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/colormap.rb:112:in  
`method_missing'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:104:in `write'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb:49:in  
`draw'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb:47:in  
`each'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/scroll-mode.rb:47:in  
`draw'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/modes/line-cursor-mode.rb: 
24:in `draw'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:95:in `draw'
/Library/Ruby/Gems/1.8/gems/sup-0.3/lib/sup/buffer.rb:283:in  
`draw_screen'
/Library/Ruby/Gems/1.8/gems/sup-0.3/bin/sup:172
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

Alex Gutteridge

Bioinformatics Center
Kyoto University

---

From: [email-masked] (William Morgan)
Date: Wed, 28 Nov 2007 09:27:07 -0800

> couldn't initialize curses color pair 4, 0 (key 1)

This suggests that ncurses doesn't want to work. Not knowing too much
about MacOS, are you missing some ncurses libraries?  Have you installed
the ncurses ruby gem? Are you able to run any other ncurses apps from
that terminal? (For example, the ncurses gem comes with a couple example
.rb files. Do they work?)

-- 
William <wmorgan-sup at masanjin.net>