fix: add blocking-read-based CSI 18t terminal size query fallback
%query-terminal-size uses blocking read-char on an fd 0 stream to read the terminal's response to \033[18t. This works even when unix-simple-poll on fd 0 returns NIL (unlike read-char-no-hang). Added as fallback in both modern and simple backends.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
(values (sb-alien:deref winsize 1)
|
||||
(sb-alien:deref winsize 0)))
|
||||
(sb-alien:free-alien winsize))))
|
||||
(%query-terminal-size)
|
||||
(values 80 24)))
|
||||
|
||||
(defmethod backend-write ((b simple-backend) string)
|
||||
|
||||
Reference in New Issue
Block a user