Commit Graph
22 Commits
Author SHA1 Message Date
Wez Furlong bfdeca4b79 start building out the muxed client Domain 2019-06-09 10:58:52 -07:00
Wez Furlong e98d8acb96 add spawn rpc 2019-06-09 08:15:37 -07:00
Wez Furlong 5ebad9e63a dyn everywhere 2019-06-08 21:28:11 -07:00
Wez Furlong 34d6d95b6f adopt log and env_logger for logging 2019-06-08 15:17:41 -07:00
Wez Furlong 038100922a clippy 2019-05-26 12:49:10 -07:00
Wez Furlong f87901c484 tidy up some failure usage 2019-05-26 08:58:59 -07:00
Wez Furlong a05bca460e fixup unused doc comment warning 2019-05-26 07:59:39 -07:00
Wez Furlong eeab341879 add use-winpty feature
When enabled, the windows version will use winpty rather than conpty.
This potentially allows running on older windows versions but has
a few caveats:

* Requires winpty.dll and winpty-agent.exe be in the PATH
* The initial screen / cursor position looks funky for me with the
  latest release of winpty, but that is from a couple of years ago
* Mouse reporting doesn't work, perhaps for the same reasons that
  it isn't working in conpty.

I want to make this into a runtime selectable feature before tidying
up the installation aspects; we need that plumbing anyway to be
able to select between local and remote mux'd tabs.
2019-03-25 09:21:00 -07:00
Wez Furlong a4a078cf98 Employ zstd compression for large pdus
This cuts down the coarse data from ~13k to ~200 bytes
2019-03-22 20:41:50 -07:00
Wez Furlong 2077e3fd21 use varbincode for mux protocol; results in ~3x smaller packets
Reduces the size of the full screen serialized size from 40k -> 13k.

Note that the `zlo` crate (which doesn't appear to have a repo
on github any longer; sources are only found in the crates.io
documentation source view), employes zigzag encoding of all integers
and floating point values and takes the size down to just under 10k.

A todo is to follow up on that and see if we could adopt the same
scheme in varbincode.
2019-03-22 20:41:50 -07:00
Wez Furlong fe7502fc0b implement coarse tab data rpc PoC
This required switching away from Rc to Arc so that the data in the
client can transit between threads.

This isn't useful yet.
2019-03-22 20:41:50 -07:00
Wez Furlong 7cdd1876d1 Enable serializing various Line and Cell related structs 2019-03-22 20:41:50 -07:00
Wez Furlong 4bdbb072f9 add ListTabs rpc 2019-03-22 20:41:50 -07:00
Wez Furlong 4269f6ff5e reduce boilerplate for the mux client 2019-03-22 20:41:50 -07:00
Wez Furlong c6d9364901 move serial number to framing layer
This makes it generally smaller because we can use a varint encoding
for it, and avoids repeating that field in all of the pdu structs.
2019-03-22 20:41:50 -07:00
Wez Furlong bd1b66e758 add simple ping/pong cli rpc 2019-03-22 20:41:50 -07:00
Wez Furlong 891bd89939 add codec skeleton and tests 2019-03-22 20:41:50 -07:00
Wez Furlong 2b4b27c9c0 start a unix listener when running the mux server 2019-03-22 20:41:50 -07:00
Wez Furlong 3c7eeac2da stub out muxserver frontend 2019-03-22 20:41:50 -07:00
Wez Furlong d1b9974147 fixup windows build 2019-03-13 08:17:16 -07:00
Wez Furlong 4c322e1c69 add useless mux server mode 2019-03-06 23:06:38 +00:00
Wez Furlong d71ac26b93 add very bare bones skeleton for unix domain socket bits 2019-03-03 05:08:58 -08:00