                                    :fg-image-data fg-image-data
                                    :bg-image-data bg-image-data}}
                            key-chan
-                           gl-lock
-                           close-ref)]
+                           gl-lock)]
       ;; Access to terminal will be multi threaded. Release context so that other threads can access it)))
       (Display/releaseContext)
       ;; Start font file change listener thread

               ; Process messages in the main thread rather than the input go-loop due to Windows only allowing
               ; input on the thread that created the window
               (Display/processMessages)
               (or (Display/isCloseRequested) @close-ref))
           (do
             (log/info "Destroying display")
             (with-gl-context gl-lock

                           line))
                   cm))))
  (destroy! [_]
    (reset! gl-lock false)))


(defn make-terminal
