docs: update for MuxPane/Pane merger

This commit is contained in:
Wez Furlong committed 2022-09-11 07:21:54 -07:00
1 parent 42e4a51a28
commit cf989fb9da
15 files changed
+28 -29

No files matched your search

-1
View File
@@ -393,7 +393,6 @@ TOC = [
Page("object: LocalProcessInfo", "config/lua/LocalProcessInfo.md"),
Gen("object: MuxWindow", "config/lua/mux-window"),
Gen("object: MuxTab", "config/lua/MuxTab"),
Gen("object: MuxPane", "config/lua/MuxPane"),
Page("object: PaneInformation", "config/lua/PaneInformation.md"),
Page("object: TabInformation", "config/lua/TabInformation.md"),
Page("object: SshDomain", "config/lua/SshDomain.md"),
-8
View File
@@ -1,8 +0,0 @@
# MuxPane
*Since: 20220624-141144-bd1b7c5d*
`MuxPane` represents a pane that is managed by the multiplexer.
It has the following methods:
-7
View File
@@ -1,7 +0,0 @@
# `pane:pane_id()`
*Since: 20220624-141144-bd1b7c5d*
Returns the pane id
+1 -1
View File
@@ -2,7 +2,7 @@
*Since: 20220807-113146-c2fee766*
Returns an array table containing the set of [MuxPane](../MuxPane/index.md) objects
Returns an array table containing the set of [Pane](../pane/index.md) objects
contained by this tab.
+1 -1
View File
@@ -16,6 +16,6 @@ Each element is a lua table with the following fields:
* `height` - The height of this pane in cells
* `pixel_width` - The width of this pane in pixels
* `pixel_height` - The height of this pane in pixels
* `pane` - The [MuxPane](../MuxPane/index.md) object
* `pane` - The [Pane](../pane/index.md) object
+1 -1
View File
@@ -3,7 +3,7 @@
*Since: 20220624-141144-bd1b7c5d*
Spawns a program into a new tab within this window, returning the
[MuxTab](../MuxTab/index.md), [MuxPane](../MuxPane/index.md) and
[MuxTab](../MuxTab/index.md), [Pane](../pane/index.md) and
[MuxWindow](index.md) objects associated with it:
```lua
+14 -5
View File
@@ -1,10 +1,19 @@
# `Pane` object
A Pane object cannot be created in lua code; it is typically passed to your
code via an event callback. A Pane object is a handle to a live instance of a
Pane that is known to the wezterm process. A Pane object tracks the psuedo
terminal (or real serial terminal) and associated process(es) and the parsed
screen and scrollback.
---
*Since: nightly builds only*
In previous releases there were separate `MuxPane` and `Pane` objects created
by the mux and gui layers, respectively. This is no longer the case: there is
now just the underlying mux pane which is referred to in these docs as `Pane`
for the sake of simplicity.
---
A Pane object is typically passed to your code via an event callback. A Pane
object is a handle to a live instance of a Pane that is known to the wezterm
process. A Pane object tracks the psuedo terminal (or real serial terminal)
and associated process(es) and the parsed screen and scrollback.
A Pane object can be used to send input to the associated processes and
introspect the state of the terminal emulation for that pane.
+7 -1
View File
@@ -2,5 +2,11 @@
*Since: 20220807-113146-c2fee766*
Returns the [MuxPane](../MuxPane/index.md) representation of this pane.
*Deprecated Since: nightly builds only*
Returns the `MuxPane` representation of this pane.
In nightly versions of wezterm, there is no longer a distinction
between gui and mux representations of panes, so this method
returns itself.
File renamed without changes.
File renamed without changes.
@@ -3,7 +3,7 @@
*Since: 20220624-141144-bd1b7c5d*
Splits `pane` and spawns a program into the split, returning the
`MuxPane` object associated with it:
`Pane` object associated with it:
```lua
local new_pane = pane:split {}
File renamed without changes.
File renamed without changes.
+2 -2
View File
@@ -3,9 +3,9 @@
*Since: 20220624-141144-bd1b7c5d*
Given a pane ID, verifies that the ID is a valid pane known to the mux
and returns a [MuxPane](../MuxPane/index.md) object that can be used to
and returns a [Pane](../pane/index.md) object that can be used to
operate on the pane.
This is useful for situations where you have obtained a pane id from
some other source and want to use the various `MuxPane` methods with it.
some other source and want to use the various `Pane` methods with it.
+1 -1
View File
@@ -3,7 +3,7 @@
*Since: 20220624-141144-bd1b7c5d*
Spawns a program into a new window, returning the [MuxTab](../MuxTab/index.md),
[MuxPane](../MuxPane/index.md) and [MuxWindow](../mux-window/index.md) objects
[Pane](../pane/index.md) and [MuxWindow](../mux-window/index.md) objects
associated with it:
```lua