claudewheel v0.15.1 /claudewheel.terminal
Edit
On this page

Terminal class for raw-mode input handling and screen management.

#claudewheel.terminal

#claudewheel.terminal

Raw terminal I/O: cbreak mode, escape sequence decoding, and alt screen.

#Terminal

Low-level terminal I/O: raw mode, key reading, alt screen, and size detection.

#get_size

python
def get_size(self) -> tuple[int, int]

#enter_raw

python
def enter_raw(self) -> None

#exit_raw

python
def exit_raw(self) -> None

#read_key

python
def read_key(self) -> str

Read a single keypress, decoding escape sequences for arrow keys etc.

#_write_tty

python
def _write_tty(self, text: str) -> None

Write directly to the TTY device.

#write

python
def write(self, text: str) -> None

#flush

python
def flush(self) -> None

#close

python
def close(self) -> None

Close the /dev/tty file handle.