# io.github.libtmux.Buffers.Buffers.set

- **Module:** io.github.libtmux.Buffers.Buffers
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Buffers.java#L60
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-buffers-buffers-set/

```
io.github.libtmux.Buffers.Buffers.set(name: String, contents: String) -> void
```

Puts text in a named buffer, replacing whatever was there.

The contents end the options, because they are the one argument here tmux would otherwise
read as flags: {@code set("clip", "-nfoo")} used to rename the buffer to {@code foo} and write
nothing, and report success.
