# Server.capture(_:includingHistory:maximumLines:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/PaneInteraction.swift#L97
- **Page:** https://libtmux.org/reference/swift/server-capture(_-includinghistory-maximumlines-)/

```
Server.capture(_:includingHistory:maximumLines:)(pane: Pane, includingHistory: Bool, maximumLines: Int) -> PaneCapture
```

Reads the newest rows without collecting older rows that will be discarded.

## Raises

- `TmuxError`
