]> git.cworth.org Git - sup/commitdiff
consolidate curses requirement
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 27 Oct 2007 01:42:22 +0000 (01:42 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 27 Oct 2007 01:42:22 +0000 (01:42 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@616 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup
lib/sup/colormap.rb
lib/sup/keymap.rb
lib/sup/textfield.rb

diff --git a/bin/sup b/bin/sup
index d3b07349ca1ee5039cbdeb3e5141259aa7557ad2..e2b331a90d390a5d85c209382e7d23b356a47607 100644 (file)
--- a/bin/sup
+++ b/bin/sup
@@ -2,6 +2,7 @@
 
 require 'rubygems'
 require 'ncurses'
+require 'curses'
 require 'fileutils'
 require 'trollop'
 require "sup"
@@ -148,6 +149,9 @@ begin
           Ncurses::A_BOLD
     c.add :completion_character_color, Ncurses::COLOR_WHITE,
           Ncurses::COLOR_BLACK, Ncurses::A_BOLD
+    c.add :reply_mode_selected_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK, Ncurses::A_BOLD
+    c.add :reply_mode_unselected_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
+    c.add :reply_mode_label_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
   end
 
   log "initializing buffer manager"
index d13e86ca65639ba15fa04d3ab4df6bbb246c3099..f60f84b240f9a586a68f400fd129305bcf41f777 100644 (file)
@@ -1,5 +1,3 @@
-require "curses"
-
 module Redwood
 
 class Colormap
index ce261ba96ef05f8eaf17da7bfc7c836e468e381e..e8a8943348fb5b7d36268af19049dcc3d023d66c 100644 (file)
@@ -1,5 +1,3 @@
-require "curses"
-
 module Redwood
 
 class Keymap
index fc82d062b2272089b51b29a8f59ca402923f5936..c155ea0f84d4bbf503b13047a2801e24e21f81a3 100644 (file)
@@ -1,5 +1,3 @@
-require 'curses'
-
 module Redwood
 
 ## a fully-functional text field supporting completions, expansions,