From c84ea299adeeb18e69c141b07b9c2cf2e3427c5a Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Date: Sun, 21 Apr 2019 08:22:46 -0400
Subject: [PATCH] Simplified color enable call with a loop.

---
 conf/config.yaml                  | 2 +-
 lib/aethyr/core/render/display.rb | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/conf/config.yaml b/conf/config.yaml
index 2e75924..940200f 100644
--- a/conf/config.yaml
+++ b/conf/config.yaml
@@ -9,7 +9,7 @@
 :restart_delay: 10
 :address: 0.0.0.0
 :intro_file: intro.txt
-:start_room: 3d409184-ebea-5275-a393-104e25e7fa93
+:start_room: 1cafec86-9526-cb45-d510-e90127b71648
 :restart_limit: 15
 :mccp: false
 :mssp: false
diff --git a/lib/aethyr/core/render/display.rb b/lib/aethyr/core/render/display.rb
index e28bdc2..c17c8b1 100644
--- a/lib/aethyr/core/render/display.rb
+++ b/lib/aethyr/core/render/display.rb
@@ -50,10 +50,9 @@ class Display
   def init_colors
     Ncurses.start_color
     @use_color = true
-    @windows[:main].enable_color
-    @windows[:input].enable_color
-    @windows[:map].enable_color
-    @windows[:look].enable_color
+    @windows.each do |channel, window|
+      window.enable_color
+    end
     puts "There are #{Ncurses.COLORS} colors on this client"
     Ncurses.assume_default_colors(Color::Foreground.attribute(:white), Color::Background.attribute(:black));
     Ncurses.COLORS.times do |fg|
-- 
GitLab