fix(tui): Restore input window cursor focus and rendering
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 3s
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 3s
This commit is contained in:
@@ -114,14 +114,13 @@ The OpenCortex TUI Client is a standalone Common Lisp application built on **Cro
|
|||||||
(when (> (length *input-buffer*) 0)
|
(when (> (length *input-buffer*) 0)
|
||||||
(decf (fill-pointer *input-buffer*))))
|
(decf (fill-pointer *input-buffer*))))
|
||||||
((characterp ch)
|
((characterp ch)
|
||||||
(vector-push-extend ch *input-buffer*)))
|
(vector-push-extend ch *input-buffer*))))
|
||||||
|
|
||||||
(clear input-win)
|
(clear input-win)
|
||||||
(add-string input-win (concatenate 'string "> " (coerce *input-buffer* 'string)))
|
(add-string input-win (concatenate 'string "> " (coerce *input-buffer* 'string)))
|
||||||
(refresh input-win)))
|
(refresh input-win)
|
||||||
|
|
||||||
(refresh scr)
|
(sleep 0.02))))
|
||||||
(sleep 0.02))))
|
|
||||||
(setf *is-running* nil)
|
(setf *is-running* nil)
|
||||||
(when *socket* (usocket:socket-close *socket*))))
|
(when *socket* (usocket:socket-close *socket*))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|||||||
@@ -101,13 +101,12 @@
|
|||||||
(when (> (length *input-buffer*) 0)
|
(when (> (length *input-buffer*) 0)
|
||||||
(decf (fill-pointer *input-buffer*))))
|
(decf (fill-pointer *input-buffer*))))
|
||||||
((characterp ch)
|
((characterp ch)
|
||||||
(vector-push-extend ch *input-buffer*)))
|
(vector-push-extend ch *input-buffer*))))
|
||||||
|
|
||||||
(clear input-win)
|
(clear input-win)
|
||||||
(add-string input-win (concatenate 'string "> " (coerce *input-buffer* 'string)))
|
(add-string input-win (concatenate 'string "> " (coerce *input-buffer* 'string)))
|
||||||
(refresh input-win)))
|
(refresh input-win)
|
||||||
|
|
||||||
(refresh scr)
|
(sleep 0.02))))
|
||||||
(sleep 0.02))))
|
|
||||||
(setf *is-running* nil)
|
(setf *is-running* nil)
|
||||||
(when *socket* (usocket:socket-close *socket*))))
|
(when *socket* (usocket:socket-close *socket*))))
|
||||||
|
|||||||
Reference in New Issue
Block a user