# TmuxContext.init(parsing:)

- **Module:** TmuxContext
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/TmuxContext.swift#L32
- **Page:** https://libtmux.org/reference/swift/tmuxcontext-init(parsing-)/

```
TmuxContext.init(parsing:)(parsing: String)
```

Reads the value tmux puts in `$TMUX`.

Returns `nil` for anything that is not that shape, including an empty
string: a process not started by tmux has no context to report, and
inventing one would point at a server that may not exist.
