# TmuxContext.init(parsing:)

- **Module:** TmuxContext
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/TmuxContext.swift#L33
- **Page:** https://libtmux.org/en/swift/latest/reference/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.
