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

Server.clear_prompt_history

Clear prompt history via $ tmux clear-prompt-history.

Source and package
Qualified name
libtmux.Server.clear_prompt_history
Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
Other languages
PowerShell Julia Ruby Lua TypeScript RustGoJavaC# C++ Swift Kotlin Scala F#
clear_prompt_history ( self, prompt_type: t.Literal[ "command", "search", "target", "window-target" ] | None = None, ) → None

Examples#

>>> from libtmux.common import has_gte_version
>>> if has_gte_version("3.3"):
... server.clear_prompt_history()
Parameters

tmux command clear-prompt-history

In other ports Forget what has been typed at command prompts
  • 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 Server
  • Rust
  • Go
  • Java
  • C#
  • C++
    no equivalent on Server
  • Swift
    no equivalent on Server
  • 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