# reset_terminal_background

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/terminal_escape/reset_terminal_background)

Reset the terminal's dynamic default background color with `OSC 111`.

This is a no-op when `set_terminal_background` never succeeded, so the app
does not send a restore for a background it did not change.

## Signature

```python
reset_terminal_background() -> bool
```

## Returns

`bool`

`True` if the sequence was written.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/terminal_escape.py#L266)