================
@@ -1181,6 +1181,30 @@ These packets must be sent  _prior_ to sending a "A" 
packet.
 a target after making a connection to a GDB server that isn't already 
connected to
 an inferior process.
 
+## QSetSTDIOWindowSize:cols=\<N\>;rows=\<N\>
+
+Set the terminal window size for the inferior's stdio pseudo-terminal prior to
+sending an "A" packet.
+
+When launching a program that uses a pseudo-terminal (PTY) for stdio, this
+packet specifies the initial terminal dimensions:
+```
+QSetSTDIOWindowSize:cols=<N>;rows=<N>
+```
+Both `cols` and `rows` must be non-zero unsigned 16-bit integers. The packet
+must be sent _prior_ to sending an "A" packet. On the server side, the
+dimensions are applied to the PTY via `TIOCSWINSZ` (POSIX) or the equivalent
----------------
DavidSpickett wrote:

> applied to the PTY via `TIOCSWINSZ` (POSIX)

I assume this means if we were to implement this on Linux, it would do this, 
but from what you've said, we don't need it there anyway.

And this doc isn't really "what lldb-server does" anyway, so it's fine to say 
how things could be handled even if we haven't done that ourselves.

https://github.com/llvm/llvm-project/pull/201141
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to