1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 06:54:45 +03:00
Commit Graph

1092 Commits

Author SHA1 Message Date
Wez Furlong
cd18212064 add some docs on multiplexing 2019-06-22 18:19:13 -07:00
Wez Furlong
452a0cdab4 more docs stuff 2019-06-22 17:27:56 -07:00
Wez Furlong
82f70a2579 another doc tweak 2019-06-22 15:36:52 -07:00
Wez Furlong
1ceb300298 rename index 2019-06-22 15:33:04 -07:00
Wez Furlong
9447277166 prep for putting docs under the docs dir 2019-06-22 15:28:20 -07:00
Wez Furlong
a01915cabd Set theme jekyll-theme-cayman 2019-06-22 15:20:46 -07:00
Wez Furlong
0bf83d26aa Set theme jekyll-theme-hacker 2019-06-22 15:14:46 -07:00
Wez Furlong
2c7138cc6e use consistent version of filedescriptor crate 2019-06-22 14:31:19 -07:00
Wez Furlong
472b2d38f7 try harder to get openssl vendoring right 2019-06-22 14:28:52 -07:00
Wez Furlong
3ba62a8a1c vendor in openssl on macos 2019-06-22 14:15:44 -07:00
Wez Furlong
4c6768fd2b fixup windows build 2019-06-22 13:40:41 -07:00
Wez Furlong
be345853cd allow spawning the server automatically when connecting via unix domain 2019-06-22 13:22:28 -07:00
Wez Furlong
7751a85826 fix subtraction underflow 2019-06-22 13:14:08 -07:00
Wez Furlong
4c877d493f add --daemonize flag 2019-06-22 12:44:22 -07:00
Wez Furlong
33f17eaf3f remove WEZTERM_SKIP_MUX_SOCK_PERMISSIONS_CHECK env var in favor of config value 2019-06-22 11:01:17 -07:00
Wez Furlong
2e63989c6e add option to avoid connecting to multiplexers on startup 2019-06-22 10:24:45 -07:00
Wez Furlong
83a72d505a clippy 2019-06-22 10:18:23 -07:00
Wez Furlong
6c8d296c44 respect the connect_automatically configuration
For unix and tls clients, if connect_automatically is set
and we're not running the server, then instantiate and connect
to those domains when we start the app.

As part of this I realized that we weren't mapping the remote
tab to the local tab for unilateral pushes, so add some stuff
to support that.
2019-06-22 10:13:02 -07:00
Wez Furlong
9054343e51 factor out tls client configuration
We can now also specify multiple tls clients
2019-06-22 09:08:31 -07:00
Wez Furlong
86251f1787 factor out tls server configuration
Can now specify multiple servers if desired.
2019-06-22 08:44:14 -07:00
Wez Furlong
712089a5de refactor unix domain configuration
It is now possible to specify multiple domains with varying
configuration.
2019-06-22 08:21:25 -07:00
Wez Furlong
fcc2b1ab7d rejigger tab spawning hotkeys
cmd-t now spawns in the same domain as the active tab,
cmd-shift-t spawns in the default domain.

It is possible to define bindings to spawn in an arbitrary domain.
2019-06-22 07:46:49 -07:00
Wez Furlong
2e84714c97 clippy 2019-06-22 07:06:41 -07:00
Wez Furlong
cb4fa1ac21 get_dirty_lines now uses Cow<Line>
This avoids some extra allocations in the local tab case.
2019-06-22 06:57:35 -07:00
Wez Furlong
dc3c5cbdd6 enable url highlighting over mux 2019-06-21 21:40:48 -07:00
Wez Furlong
e12f413224 propagate url clicks back to client 2019-06-21 18:44:07 -07:00
Wez Furlong
1ee4c14474 add size to cli tab list output 2019-06-21 15:04:31 -07:00
Wez Furlong
49894385dd update tests for clipboard changes 2019-06-21 09:12:01 -07:00
Wez Furlong
9978c1234c restructure throttling around scanning and pushing changes 2019-06-21 08:44:10 -07:00
Wez Furlong
cfeb7e4705 remove dead commented out code 2019-06-21 07:58:49 -07:00
Wez Furlong
4ddef39b52 ratelimit unilateral pushes 2019-06-21 07:56:09 -07:00
Wez Furlong
9a4ae0a06b ratelimit child process output
In the early days we relied upon the bounded length of a sync channel
to put back pressure on the output from a child command.  We're no
longer using that kind of channel, so here's a more deliberate and
measurable rate limiting implementation.

The `ratelimit_output_bytes_per_second` configuration setting defaults
to 2MB/s and constrains the amount of text we send to the escape
sequence parser.

This value was selected based on it being a combination of responsive
to ctrl-c while outputing a lot of data and still generating sleeps
to remain within the constraints.

This does mean that terminal benchmarks that test how quickly you
can dump text to the terminal will hit this artifical upper limit
and are thus not going to be a true measure of performance.
2019-06-21 07:16:37 -07:00
Wez Furlong
130a7263d4 avoid repeated emission of cursor updates when scrolled back 2019-06-20 21:39:47 -07:00
Wez Furlong
938eb5e1cf remove old coarse pdus 2019-06-20 21:38:08 -07:00
Wez Furlong
760f9f25de implement peer authentication on the server side
This is admittedly pretty environment-specific, but it matches
an environment that I use :-p
2019-06-20 18:46:31 -07:00
Wez Furlong
16e26797d4 make openssl the default on unix systems 2019-06-20 17:35:20 -07:00
Wez Furlong
4ad7ff3083 use openssl directly for the client when that feature is enabled
This removes some redundancy and overhead around setting up the
connection (the native_tls crate doesn't provide PEM functions,
despite every deployment I've ever seen only ever using PEM certs),
but more importantly, gives the control needed to make hostname
verification work in a PKI setup with unusual CN values.
2019-06-20 17:27:40 -07:00
Wez Furlong
6c9e851ffa make mux server frontend channel unbounded
This avoids the possibility of deadlock if you connect to a remote
host and quickly dump a lot of output to the terminal.
2019-06-20 08:59:26 -07:00
Wez Furlong
4171ad3aa3 fix surface size for newly spawned tabs
Problem scenario was:

* spawn a window
* resize it larger
* spawn a new tab

When working with a mux client tab, the surface size in the new tab
didn't reflect the size of the remote surface, so the rendering was
messed up.

Arrange to know the size up front.
2019-06-20 08:46:58 -07:00
Wez Furlong
7bff509540 allow server to unilaterally send clipboard when it changes 2019-06-20 08:29:09 -07:00
Wez Furlong
e993e5a625 allow capturing the clipboard impl from the terminal host
This should allow asynchronous access to the clipboard, which
in turn will allow the server to send the clipboard to the client
unilaterally.
2019-06-20 07:55:03 -07:00
Wez Furlong
0b9c953446 bump for filedescriptor changes 2019-06-20 06:55:10 -07:00
Wez Furlong
40ff31f984 fixup mux session over tls 2019-06-19 09:30:49 -07:00
Wez Furlong
da02bf0ba7 repaint when switching between mux'd tabs 2019-06-19 08:53:05 -07:00
Wez Furlong
26cdb6c87f improve latency for server -> client push 2019-06-19 08:40:19 -07:00
Wez Furlong
97daa8b246 switch to using the poll stuff from filedescriptor 0.3 2019-06-19 00:01:35 -07:00
Wez Furlong
c18dd96472 can now push changes from server->client
Need to emit them in more places.  The idea is that this helps
to reduce the event->display latency.
2019-06-17 08:47:24 -07:00
Wez Furlong
2f5b710b3e more listener plumbing in readiness for sending unilateral responses 2019-06-17 07:02:21 -07:00
Wez Furlong
5407a31dbb move pollable bits to own module 2019-06-16 22:38:04 -07:00
Wez Furlong
df381e483c refactor server side client session state 2019-06-16 22:29:30 -07:00