Core Library0.xAPI reference

Choose documentation 3

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.

MoreLess about this notice

method libtmux-dotnet

Server.SourceFileAsync

Reads a tmux configuration file.

Source and package
Qualified name
LibTmux.Server.SourceFileAsync
Namespace
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Administration.cs
Task SourceFileAsync( string path, bool quiet = false, bool parseOnly = false, bool verbose = false, CancellationToken cancellationToken = default )
Parameters

Recorded calls

source calls
No call edges in the C# model.

The C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.SourceFileAsync.

tmux command

task material

The tmux commands behind SourceFileAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 10 other ports mapped

Source-verified mappings for Load a tmux configuration file. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Load a tmux configuration file in each port
PortAPIDiffers from C#
C# LibTmux.Server.SourceFileAsync
Reads a tmux configuration file.
This page
Python libtmux.Server.source_file
Source a tmux configuration file via $ tmux source-file.
None recorded in the model
Ruby LibTmux::Server#source_file
Behavior: Source files.
None recorded in the model
Erlang tmux_command:source_file/2
Build configuration loading from stdin or one literal absolute path, without I/O. stdin renders source-file -; supply configuration bytes in the stdin option of tmux_server:command/3 or tmux_operation:start/3. Those APIs bound input to 256 KiB including their argument reservation.
free function
Builds a trusted command value. Execute it explicitly with tmux_server:command/3.
TypeScript server.Server.sourceFile
Run a tmux config file against this server.
None recorded in the model
Rust server.Server.source_file
Load a tmux configuration file into this server.
async
Go tmux.Server.SourceFile
SourceFile loads or parses one tmux configuration file. The path expands ~ and ~/... for the current user and normalizes redundant separators and dot components without collapsing parent components. Named-user forms are rejected. Exact "-" is rejected because it requires process stdin; a relative path naming a file called "-" remains file data. It can mutate tmux configuration; completed stderr is an error, and cancellation does not prove that parsing or sourcing did not occur.
None recorded in the model
Java io.github.libtmux.Server.sourceFile
Runs a file of tmux commands, as a configuration file would be run.
None recorded in the model
C++ libtmux::Server::source_file
Run the commands in a file, the way tmux runs a configuration file.
readonly
Swift Server.sourceFile(_:)
Loads a tmux configuration file into the running server.
async
Raku LibTmux::Server.source-file
Source one literal local pathname; parse-only validates without running its commands.
Sources a literal pathname; parse-only validates without executing commands.
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No equivalent is recorded in Lua, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference