Clears the terminal screen.
Executes a SQL query and returns the result.
The SQL statement to execute
The query result, or null if an error occurred
Gets the current theme mode.
The current theme mode
Sets the terminal theme.
The theme to apply ('dark' or 'light')
Writes text to the terminal without a newline.
The text to write
Writes text to the terminal followed by a newline.
The text to write
Interface for interacting with the terminal from commands.
This interface is passed to command handlers and provides methods for writing output and executing SQL.