Download tasks/headless-terminal/environment/base_terminal.py from pedrodev2026/Mini-TBench: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/datasets/pedrodev2026/Mini-TBench/resolve/main/tasks/headless-terminal/environment/base_terminal.py
- Command line
-
hf download hf://datasets/pedrodev2026/Mini-TBench/tasks/headless-terminal/environment/base_terminal.py
-
curl -L -o base_terminal.py https://huggingface.co/datasets/pedrodev2026/Mini-TBench/resolve/main/tasks/headless-terminal/environment/base_terminal.py
401 Bytes
| from abc import ABC, abstractmethod | |
| class BaseTerminal(ABC): | |
| def send_keystrokes(self, keystrokes: str, wait_sec: float = 0.0) -> None: | |
| """ | |
| Sends keystrokes to the terminal. | |
| Args: | |
| keystrokes: The keystrokes to send to the terminal. | |
| wait_sec: The number of seconds to wait for the command to complete. | |
| """ | |
| pass | |