Wez Furlong
1818cce7f0
factor out ssh connection code
2019-08-03 11:35:44 -07:00
Wez Furlong
3571cd926e
cargo fmt fixup
2019-08-02 12:54:18 -07:00
Wez Furlong
c8aa11ac81
pty: add ssh support
...
This commit adds (untested!) support for remote ttys over ssh.
It requires that the embedding application connect and authenticate
the ssh session prior to turning it into a PtySystem implementation.
2019-08-02 10:55:04 -07:00
Wez Furlong
5d6f1a5725
adjustments for upstream ssh2 crate changes
2019-08-01 10:26:39 -07:00
Wez Furlong
9d0209d9a5
windows: fix .ssh/known_hosts path
2019-07-30 10:52:10 -07:00
Wez Furlong
dde589af49
fix an issue with pid files when running under wsl
...
They don't always work, so let's just not use them when under wsl.
Since we now know how to detect when we're running under wsl, we
can use that knowledge to bypass permission checking for the unix
domain sockets automatically too.
2019-07-30 09:45:00 -07:00
Wez Furlong
348575854d
Capture terminal errors and show them in a message box
...
This helps diagnose problems where stderr is not visible.
Let's also capture them to the `log` stream too, and clarify
toml parsing errors, and fix the underlying problem with
ssh_domains not being allowed to be left unspecified.
2019-07-30 08:45:39 -07:00
Wez Furlong
a7722beb0a
add support for unix mux via ssh
...
This adds an ssh domain config type that allows us to ssh to a remote
host and then proxy the unix domain mux protocol over the ssh session.
2019-07-28 16:15:44 -07:00
Wez Furlong
9d46bd889f
pty: fixup build when serde_support is not enabled
2019-07-23 13:31:01 -07:00
Wez Furlong
83e1f410e0
remove dead code attribute
2019-07-23 11:11:19 -07:00
Wez Furlong
23e174a324
fully bump filedescriptor dep
2019-07-23 09:50:48 -07:00
Wez Furlong
3d8e4f8b0e
fix issue where focusing the window would clear the clipboard
...
This was particularly noticable on windows.
2019-07-17 08:58:45 -07:00
Wez Furlong
7e50c4db68
workaround conpty drop issue
2019-07-17 08:42:41 -07:00
Wez Furlong
25bb43262d
unbreak the default windows pty
...
I was too focused on the wsl case and didn't test this. We can't
redirect the process handles without causing some problems with
starting up cmd.exe. Comment out that portion of the code for
the moment.
2019-07-16 23:04:38 -07:00
Wez Furlong
e2ac4ebb49
remove some stray debug prints
2019-07-16 20:57:43 -07:00
Wez Furlong
f3bbecbe9e
document new way to start up wezterm+wsl
2019-07-16 15:11:14 -07:00
Wez Furlong
48a12da096
capture logs on startup on win32, fixup spawning wsl from gui
2019-07-16 14:14:40 -07:00
Wez Furlong
6ace6d4fcc
avoid a panic when resizing a muxed tab as the first event
2019-07-16 09:34:51 -07:00
Wez Furlong
34ae350d88
allow spawning a server inside wsl
2019-07-16 09:05:35 -07:00
Wez Furlong
919c4d96e8
update filedescriptor crate
...
Pick up this fix to avoid hanging when closing out a mux'd tab:
bd4df51948
2019-07-16 00:30:53 -07:00
Wez Furlong
8cc5f33600
fix unix domain mux on windows
...
WSAPoll really doesn't like it if you pass in POLLERR, so don't do that.
2019-07-16 00:29:34 -07:00
Wez Furlong
9370a2d07b
improve error logging when failing to daemonize
2019-07-09 09:12:15 -07:00
Wez Furlong
df20277d85
clippy
2019-07-06 08:18:59 -07:00
Wez Furlong
d18383416e
termwiz: update version
...
This pulls in the new vtparse crate and publishes Mark's new
API in the termwiz parser.
2019-06-29 19:20:11 -07:00
Wez Furlong
ed5dcd71da
vtparse: document things
2019-06-29 19:13:45 -07:00
Wez Furlong
d67d4aab57
avoid marking a tab as dead when we might reconnect it
2019-06-29 16:31:13 -07:00
Wez Furlong
4fc6914602
reduce the amount of RefCell is in server/tab.rs
2019-06-29 16:31:13 -07:00
Wez Furlong
5440cbe521
replace vte with our own vtparse crate
...
This enables using large OSC buffers in a form that we can publish
to crates.io without blocking on an external crate. Large OSC
buffers are important both for some tunnelling use cases and for
eg: iTerm2 image protocol handling.
2019-06-29 16:28:39 -07:00
Wez Furlong
192eaeb3ff
vtparse: Add utf-8 support
2019-06-29 16:15:15 -07:00
Wez Furlong
2361d88c2a
initial take on a low level vt parser
...
This is based on the state machine described by
https://vt100.net/emu/dec_ansi_parser
and the public domain C implementation:
https://github.com/haberman/vtparse
2019-06-29 15:21:09 -07:00
Wez Furlong
4feeac91d5
nightly back to nightly
2019-06-27 07:24:03 -07:00
Wez Furlong
51ead397f6
avoid use of a fork of structopt just for vergen compat
...
This is much simpler!
Clean up some of the attributes while I'm in here.
refs: https://github.com/TeXitoi/structopt/issues/209
2019-06-27 07:21:59 -07:00
Wez Furlong
2ad7f7084d
tweak nightly build
...
I want to avoid creating/updating so many git tags for nightly builds,
so let's try restructuring things a bit.
2019-06-27 07:03:37 -07:00
Wez Furlong
086e9e9b64
pin structopt more precisely so that the vergen patch stays working
...
Upstream bumped versions and this is causing warnings in CI
2019-06-26 21:07:39 -07:00
Wez Furlong
9a7edb7147
nightly back to nightly
2019-06-26 18:04:02 -07:00
Wez Furlong
7e2e335949
sort releases so we link to the right ones(!)
2019-06-26 17:56:34 -07:00
Wez Furlong
7f715b9ab7
fix yaml
2019-06-26 17:23:57 -07:00
Wez Furlong
e0377d0ec8
request github page rebuild after creating/updating releases
...
This is desirable since the page uses release metadata and we want
it to reflect the latest version of that.
2019-06-26 17:20:54 -07:00
Wez Furlong
cc019ce5bc
don't build nightly-nightly builds
2019-06-26 16:27:06 -07:00
Wez Furlong
4627b2e798
try to avoid a loop when doing nightlys, fixup linux nightly
2019-06-26 16:05:24 -07:00
Wez Furlong
e695ff4360
simplify download page logic and include prerelease buttons
2019-06-26 15:58:39 -07:00
Wez Furlong
a7df010d1f
remove appveyor config
2019-06-26 15:58:17 -07:00
Wez Furlong
285136169e
reconnect tls connections automatically
2019-06-26 15:04:53 -07:00
Wez Furlong
96c61fcd53
refactor client to prepare for reconnecting
2019-06-26 15:04:53 -07:00
Wez Furlong
abfd98b7c6
advise the mux when a domain has detached; remove its tabs
2019-06-26 15:04:53 -07:00
Wez Furlong
5c6f44d47f
ClientDomain: treat as detached if connection is closed
...
We detect this when the client thread falls out of its processing
loop.
2019-06-26 15:04:53 -07:00
Wez Furlong
c9489d391b
Allow deferred attach of domains
...
This adds some plumbing so that a domain can indicate whether it is
attached or not, but is not yet smart enough to detect a closed
connection and mark itself as detached.
2019-06-26 15:04:53 -07:00
Wez Furlong
b5266078a9
azure: now that schedules are working, nightly builds are nightly
2019-06-26 15:00:01 -07:00
Wez Furlong
ee89347df5
azure: Build.Reason in both places
2019-06-26 14:14:58 -07:00
Wez Furlong
135624bfa8
Update azure-pipelines.yml
...
the build reason variable is Build.Reason
2019-06-26 13:36:09 -07:00