is it possible to message control sequence queries without using stdin stderr? #7215
Answered
by
kovidgoyal
iambumblehead
asked this question in
Q&A
Replies: 1 comment
-
What does this have to do with kitty? You should ask the nvim developers
how to do this. IIRC nvim has some channel mechanism you can use but I
dont recall the details as I dont use nvim.
And just FYI, you dont need to use escape codes to query screen size
https://sw.kovidgoyal.net/kitty/graphics-protocol/#getting-the-window-size
If you want to control kitty, you dont need to use the terminal
device you can setup remote control with a socket and use that,
regardless of nvim.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iambumblehead
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My script uses this
read
pattern to send all control sequence queries, for example, a window size query,problem: the above query returns empty values when the script runs inside
vifm
ncurses filemanager. Apparently,ncurses
makesstdin
andstderr
un-available to the script.I tried many ways to query window size from inside vifm and totally failed but found one way that almost works,
Window size is returned but the operation interferes with vifm. Junk characters appear in the screen and again later when entering input mode.
Please recommend a safe alternative way to send control sequence queries from inside ncurses, so they will not interfere with vifm.
Thanks in advance for any suggestions or advice.
Beta Was this translation helpful? Give feedback.
All reactions