query method
Queries the terminal for information by writing query and waiting for a response.
Returns the response string, or null if the query timed out.
This is intended for non-TUI use cases. In a TUI, use the message loop.
Implementation
@override
Future<String?> query(
String query, {
Duration timeout = const Duration(seconds: 2),
}) => _control.query(query, timeout: timeout);