             [dnd.level :refer [width height]]
             [dnd.color :refer [COLOR color-to-vec]]
             ))
+
+(def window-width width)
+(def window-height height)
 
 (defonce terminal (nodejs/require "terminal-kit"))
 

  (let [
        buffer ((.. terminal -ScreenBufferHD -create)
                #js {:dst    term
                     :width  width
                     :height height
                     })
        get-in-level (partial get-in level)]



(defn inventory-selected [term character error response]
  (assoc character :can-move true)
  (.moveTo term 0 (inc window-height)
           (if error
             "oh crap!"
             (str "you stare at " (.-selectedText response)))
