Client.clear_history
Clear stored scrollback for this pane. The visible screen and running process remain; later captures cannot recover discarded history.
Source and package
- Qualified name
-
Libtmux_unix .Client. clear _history - Module
- Libtmux_unix
- Declared in
Client- Package
- libtmux-unix
- Source
- unix/libtmux_unix.mli
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby LuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala F# Clojure
- val clear_history : ?cancel:Cancellation
.t -> t -> Libtmux.Pane -> (unit, Libtmux.target .Error ) result.t -
Public owner:
Libtmux_unix- Parameters
-
tmux command#
The tmux commands behind clear_history.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Clear a pane's scrollback
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in Ruby, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.