You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated connection.md to reflect the extraction of Connection into
TerminalQueryable, TerminalCapabilities, and TerminalWriter sub-interfaces.
Added architecture diagram and annotated section headers with their
corresponding sub-interface.
All methods remain accessible through `Connection` — the sub-interfaces simply provide clearer organization. Existing code that uses `Connection` does not need to change.
47
+
10
48
## Creating Connections
11
49
12
50
### Local Terminal Connection
@@ -196,9 +234,9 @@ int row = position.getRow();
196
234
int col = position.getColumn();
197
235
```
198
236
199
-
## OSCQueries
237
+
## OSCQueries (`TerminalQueryable`)
200
238
201
-
OSC (OperatingSystemCommand) queries allow you to interrogate the terminal for information like colors, clipboard content, and more.
239
+
OSC (OperatingSystemCommand) queries allow you to interrogate the terminal for information like colors, clipboard content, and more.These methods are defined in the `TerminalQueryable` sub-interface.
The `Connection` interfaceprovides methods for querying and subscribing to terminal theme changes using the `CSI ? 996 n` protocol. This is simpler and faster than OSC 10/11 RGB queries — it returns a direct `DARK` or `LIGHT` answer.
Synchronized output prevents screen tearing by telling the terminal to buffer all output until the frame is complete. See [SynchronizedOutput](synchronized-output) for full documentation.
0 commit comments