Core Library0.xAPI Reference

Choose documentation 1

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-raku latest

SessionRef.new-window

Create a window and return its reported identity without refreshing observations.

Source and package
Qualified name
LibTmux::Model::SessionRef.new-window
Module
LibTmux::Model
Declared in
SessionRef
Package
LibTmux
Source
lib/LibTmux/Model.rakumod
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGoJavaC#C++SwiftKotlinScalaOCaml F# Clojure
method new-window(Str :$name, :$index = Count, Bool :$select = False, Bool :$replace = False, Str :$directory, Str :$shell-command, Bool :$empty = False, Associative:D :$environment = Map.new --> WindowRef:D)

Description#

Create a window and return its reported identity without refreshing observations.

Parameters

tmux command#

The tmux commands behind new-window.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Create a window

Equivalents of Create a window in other languages
Language Equivalent
Python libtmux.Session.new_window
Ruby LibTmux::Session#new_window
Lua libtmux.Session:new_window
Erlang tmux_window:create/2
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript session.Session.newWindow
Rust session.Session.new_window
Go tmux.Session.NewWindow
Java io.github.libtmux.Session.newWindow
Clojure libtmux.core/new-window!
Kotlin io.github.libtmux.kotlin.Session.newWindow
Scala io.github.libtmux.scaladsl.Session.newWindow
C# LibTmux.Session.CreateWindowAsync
C++ libtmux::Session::new_window
Swift Server.newWindow(in:named:startDirectory:at:environment:shell:)
OCaml Libtmux_unix.Client.create_window
Perl LibTmux::Server::new_window Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.

No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp or F#.

Esc

Type to search.

Reference previewOpen reference