2020-10-03 09:35:18 +03:00
|
|
|
[package]
|
|
|
|
name = "wezterm-mux-server"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Wez Furlong <wez@wezfurlong.org>"]
|
|
|
|
edition = "2018"
|
2021-03-25 19:34:00 +03:00
|
|
|
resolver = "2"
|
2020-10-03 09:35:18 +03:00
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
anyhow = "1.0"
|
2020-10-05 07:07:40 +03:00
|
|
|
async_ossl = { path = "../async_ossl" }
|
2022-05-28 17:07:52 +03:00
|
|
|
clap = {version="3.1", features=["derive"]}
|
2020-10-03 09:35:18 +03:00
|
|
|
config = { path = "../config" }
|
2020-10-25 09:29:52 +03:00
|
|
|
env-bootstrap = { path = "../env-bootstrap" }
|
2020-10-04 19:39:28 +03:00
|
|
|
libc = "0.2"
|
2020-10-03 09:35:18 +03:00
|
|
|
log = "0.4"
|
|
|
|
mux = { path = "../mux" }
|
add gui-startup and mux-startup events
Using the newly exposed-to-lua mux apis, you may now run some lua code
at GUI startup and/or mux startup, just prior to any default windows
being created.
If you happen to spawn any panes as a result of this, wezterm will
skip creating the default program.
```lua
local wezterm = require 'wezterm'
local mux = wezterm.mux
-- This produces a window split horizontally into three equal parts
wezterm.on("gui-startup", function()
wezterm.log_info("doing gui startup")
local tab, pane, window = mux.spawn_window{}
mux.split_pane(pane, {size=0.3})
mux.split_pane(pane, {size=0.5})
end)
wezterm.on("mux-startup", function()
wezterm.log_info("doing mux startup")
local tab, pane, window = mux.spawn_window{}
mux.split_pane(pane, {size=0.5, direction="Top"})
end)
return {
unix_domains = {
{name="unix"}
},
}
```
refs: #674
refs: #1949
2022-06-17 22:37:19 +03:00
|
|
|
mlua = "0.8.0-beta.4"
|
2020-10-03 09:35:18 +03:00
|
|
|
openssl = "0.10"
|
|
|
|
portable-pty = { path = "../pty", features = ["serde_support"]}
|
|
|
|
promise = { path = "../promise" }
|
|
|
|
umask = { path = "../umask" }
|
2020-12-30 02:21:46 +03:00
|
|
|
wezterm-mux-server-impl = { path = "../wezterm-mux-server-impl" }
|
2021-02-27 21:41:48 +03:00
|
|
|
wezterm-gui-subcommands = { path = "../wezterm-gui-subcommands" }
|
2022-06-16 04:54:51 +03:00
|
|
|
wezterm-term = { path = "../term" }
|
2020-10-03 09:35:18 +03:00
|
|
|
|
2020-12-30 03:59:59 +03:00
|
|
|
[target."cfg(windows)".dependencies]
|
|
|
|
winapi = { version = "0.3", features = [ "winuser" ]}
|
|
|
|
|