# libtmux.common._literal

- **Module:** libtmux.common
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/common.py#L275
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-common-_literal/

```
libtmux.common._literal(value: str) -> str
```

Escape ``#`` so tmux stores *value* instead of expanding it as a format.

See :func:`libtmux.formats._escape_format` for why ``#{a:35}``, not ``##``.

## Parameters

- `value` (`str`)

## Examples

```python
>>> _literal("build#2")
'build#{a:35}2'
>>> _literal("plain")
'plain'
```
