# is_ascii_mode

> **Function** in `deepagents_code`

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

Check whether the terminal is in ASCII charset mode.

Convenience wrapper so widgets can branch on charset without importing
both `_detect_charset_mode` and `CharsetMode`.

## Signature

```python
is_ascii_mode() -> bool
```

## Returns

`bool`

`True` when the detected charset mode is ASCII.

---

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