Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

method libtmux stable

Pane.reset

Reset terminal state and clear pane history.

Source and package
Qualified name
libtmux.Pane.reset
Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
PowerShell Julia Ruby Lua TypeScript Rust Go Java C# C++ Swift Kotlin Scala F#
reset (self) → Pane

Description#

Sends send-keys -R and clear-history to the pane in one targeted tmux command sequence so output cannot land in the freshly-cleared grid between the terminal-state reset and the history clear.

Examples#

>>> pane.reset()
Pane(%... Window(@... ...:..., Session($1 libtmux_...)))
In other ports Reset a pane's terminal state and drop its history
  • PowerShell
    No source-verified PowerShell equivalent is recorded for this operation.
  • Julia
    No source-verified Julia equivalent is recorded for this operation.
  • Ruby
    No source-verified Ruby equivalent is recorded for this operation.
  • Lua
    No source-verified Lua equivalent is recorded for this operation.
  • TypeScript
    no equivalent on Pane
  • Rust
    no equivalent on Pane
  • Go
  • Java
    no equivalent on Pane
  • C#
  • C++
    no equivalent on Pane
  • Swift
    no equivalent on Pane
  • Kotlin
    No source-verified Kotlin equivalent is recorded for this operation.
  • Scala
    No source-verified Scala equivalent is recorded for this operation.
  • F#
    No source-verified F# equivalent is recorded for this operation.
Esc

Type to search.

Reference preview Open reference