]> git.cworth.org Git - sup/blobdiff - lib/sup/colormap.rb
update documentation to be slightly less out of date
[sup] / lib / sup / colormap.rb
index fe60f61362a5d65cd3abe22d4fcfbf8bc21d26c2..38787cddc41374a9f9adf583160627a5dfb448e0 100644 (file)
@@ -11,7 +11,7 @@ class Colormap
                    Curses::COLOR_YELLOW, Curses::COLOR_BLUE,
                    Curses::COLOR_MAGENTA, Curses::COLOR_CYAN,
                    Curses::COLOR_WHITE, Curses::COLOR_DEFAULT]
-  NUM_COLORS = 15
+  NUM_COLORS = (CURSES_COLORS.size - 1) * (CURSES_COLORS.size - 1)
 
   DEFAULT_COLORS = {
     :status => { :fg => "white", :bg => "blue", :attrs => ["bold"] },