Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | ensure that all bytes coming from the terminal actually get written | Jesse Luehrs | 2019-10-16 | 4 | -94/+135 | |
| | | | | | | | | | it's not actually safe to just skip over bytes when we see a reset escape sequence, because there might be other escape sequences changing the terminal state that don't get cleared by a reset. for instance, starting vim sends "switch to alternate screen" followed by "reset", and if those two come in the same packet, we were previously dropping the "switch to alternate screen" escape sequence, causing incorrect display. | |||||
* | simplify | Jesse Luehrs | 2019-10-16 | 3 | -14/+13 | |
| | ||||||
* | simplify | Jesse Luehrs | 2019-10-16 | 2 | -22/+21 | |
| | ||||||
* | remove some unnecessary moves | Jesse Luehrs | 2019-10-16 | 1 | -2/+2 | |
| | ||||||
* | cache refresh tokens and use them when the exist | Jesse Luehrs | 2019-10-16 | 12 | -53/+331 | |
| | | | | to avoid needing to go through the browser auth flow every time | |||||
* | further generalize the oauth flow | Jesse Luehrs | 2019-10-16 | 2 | -35/+69 | |
| | ||||||
* | better error handling in client oauth login flow | Jesse Luehrs | 2019-10-16 | 2 | -17/+35 | |
| | ||||||
* | move address default out of the util function | Jesse Luehrs | 2019-10-16 | 3 | -6/+5 | |
| | ||||||
* | add a bit more debug logging to the client | Jesse Luehrs | 2019-10-16 | 1 | -5/+22 | |
| | ||||||
* | don't block the main thread when waiting for oauth response | Jesse Luehrs | 2019-10-16 | 2 | -72/+142 | |
| | ||||||
* | rename some enum variants | Jesse Luehrs | 2019-10-16 | 1 | -7/+7 | |
| | | | | more consistency with the server side | |||||
* | comment | Jesse Luehrs | 2019-10-16 | 1 | -1/+1 | |
| | ||||||
* | pull address out into a const | Jesse Luehrs | 2019-10-16 | 1 | -3/+10 | |
| | ||||||
* | relax the http request parsing a bit | Jesse Luehrs | 2019-10-16 | 1 | -1/+1 | |
| | ||||||
* | start implementing oauth authentication | Jesse Luehrs | 2019-10-15 | 11 | -55/+1308 | |
| | ||||||
* | don't send terminal output messages unless we're connected | Jesse Luehrs | 2019-10-15 | 1 | -1/+5 | |
| | | | | | the server won't be expecting terminal output messages during the process of a login flow, for instance | |||||
* | need to reset rsock after closing the connection too | Jesse Luehrs | 2019-10-15 | 1 | -0/+1 | |
| | | | | | since the future that produced it completed at this point, so we don't want to poll it again (which could happen since closing is deferred) | |||||
* | reset reconnect timer after logging in | Jesse Luehrs | 2019-10-15 | 1 | -2/+1 | |
| | | | | | resetting after connect means that we could still potentially crashloop during a multi-phase login | |||||
* | add an intermediate LoggingIn state | Jesse Luehrs | 2019-10-15 | 1 | -3/+34 | |
| | | | | for login methods that require additional messages back and forth | |||||
* | add a processing state to server connections | Jesse Luehrs | 2019-10-15 | 1 | -8/+50 | |
| | | | | this allows us to do long-lived actions in response to messages | |||||
* | send initial terminal size on process start | Jesse Luehrs | 2019-10-15 | 4 | -18/+34 | |
| | | | | | | sending it on connect meant that the terminal size wouldn't be set at all if there was a problem connecting to the server, which confuses programs running in the pty | |||||
* | add client message logging too | Jesse Luehrs | 2019-10-15 | 1 | -0/+3 | |
| | ||||||
* | wait to send on_connect messages until after login | Jesse Luehrs | 2019-10-15 | 1 | -6/+6 | |
| | ||||||
* | allow clippy::single_match everywhere | Jesse Luehrs | 2019-10-15 | 2 | -2/+1 | |
| | ||||||
* | various client cleanups | Jesse Luehrs | 2019-10-15 | 1 | -91/+99 | |
| | ||||||
* | delay moving to the connected state until we get an ack from the server | Jesse Luehrs | 2019-10-15 | 3 | -3/+35 | |
| | | | | | this should make adding additional handshake steps during login more straightforward | |||||
* | store term type and size data on the client | Jesse Luehrs | 2019-10-15 | 1 | -9/+15 | |
| | ||||||
* | more simplification | Jesse Luehrs | 2019-10-14 | 1 | -8/+11 | |
| | ||||||
* | a few more tweaks | Jesse Luehrs | 2019-10-14 | 5 | -53/+56 | |
| | ||||||
* | fix tls poll implementation | Jesse Luehrs | 2019-10-14 | 1 | -1/+1 | |
| | ||||||
* | comment | Jesse Luehrs | 2019-10-14 | 1 | -0/+1 | |
| | ||||||
* | and more simplifying | Jesse Luehrs | 2019-10-14 | 1 | -63/+60 | |
| | ||||||
* | simplify | Jesse Luehrs | 2019-10-14 | 1 | -166/+199 | |
| | ||||||
* | simplify state management a bit | Jesse Luehrs | 2019-10-14 | 2 | -27/+32 | |
| | ||||||
* | simplify some types | Jesse Luehrs | 2019-10-14 | 3 | -12/+11 | |
| | ||||||
* | consolidate errors | Jesse Luehrs | 2019-10-14 | 17 | -616/+441 | |
| | ||||||
* | move common traits into a prelude | Jesse Luehrs | 2019-10-14 | 17 | -50/+24 | |
| | ||||||
* | move some code around | Jesse Luehrs | 2019-10-14 | 4 | -137/+171 | |
| | ||||||
* | rename and move around some methods | Jesse Luehrs | 2019-10-14 | 1 | -103/+103 | |
| | ||||||
* | refactor to allow for multiple authentication types | Jesse Luehrs | 2019-10-14 | 3 | -12/+49 | |
| | ||||||
* | add license | Jesse Luehrs | 2019-10-14 | 1 | -0/+32 | |
| | ||||||
* | name change, again | Jesse Luehrs | 2019-10-14 | 6 | -30/+30 | |
| | ||||||
* | polling should be considered doing work | Jesse Luehrs | 2019-10-14 | 2 | -2/+2 | |
| | ||||||
* | add command to play ttyrecs | Jesse Luehrs | 2019-10-14 | 4 | -3/+337 | |
| | ||||||
* | add command to record terminal sessions | Jesse Luehrs | 2019-10-13 | 4 | -0/+427 | |
| | ||||||
* | add tls support for clients | Jesse Luehrs | 2019-10-12 | 4 | -39/+145 | |
| | ||||||
* | generalize the client implementation | Jesse Luehrs | 2019-10-12 | 3 | -64/+112 | |
| | ||||||
* | add tls support to the server | Jesse Luehrs | 2019-10-12 | 4 | -24/+400 | |
| | ||||||
* | generalize the server implementation | Jesse Luehrs | 2019-10-11 | 1 | -39/+45 | |
| | | | | this should allow using either tls or non-tls sockets | |||||
* | tweak some buffers | Jesse Luehrs | 2019-10-11 | 1 | -3/+5 | |
| |