zellij/zellij-server/src
kxt 0c0355dbc6
refactors for #525 (#534)
* refactor(fakes): clean up add_terminal_input

* refactor(fakes): append whole buf to output_buffer in FakeStdoutWriter::write

* refactor(fakes): append whole buf to output_buffer in FakeInputOutput::write_to_tty_stdin

* fix(fakes): allow partial reads in read_from_tty_stdout

This patch fixes two bugs in read_from_tty_stdout:
* if there was a partial read (ie. `bytes.read_position` is not 0 but
less than `bytes.content.len()`), subsequent calls to would fill `buf`
starting at index `bytes.read_position` instead of 0, leaving range
0..`bytes.read_position` untouched.
* if `buf` was smaller than `bytes.content.len()`, a panic would occur.

* refactor(channels): use crossbeam instead of mpsc

This patch replaces mpsc with crossbeam channels because crossbeam
supports selecting on multiple channels which will be necessary in a
subsequent patch.

* refactor(threadbus): allow multiple receivers in Bus

This patch changes Bus to use multiple receivers. Method `recv` returns
data from all of them. This will be used in a subsequent patch for
receiving from bounded and unbounded queues at the same time.

* refactor(channels): remove SenderType enum

This enum has only one variant, so the entire enum can be replaced with
the innards of said variant.

* refactor(channels): remove Send+Sync trait implementations

The implementation of these traits is not necessary, as
SenderWithContext is automatically Send and Sync for every T and
ErrorContext that's Send and Sync.
2021-05-27 16:28:28 +02:00
..
panes fix(compatibility): support wide characters (#535) 2021-05-26 18:05:43 +02:00
ui Merge pull request #522 from zellij-org/re-export-dependencies 2021-05-19 11:21:33 +05:30
lib.rs refactors for #525 (#534) 2021-05-27 16:28:28 +02:00
os_input_output.rs Merge pull request #531 from zellij-org/detach-sessions 2021-05-25 17:30:40 +05:30
pty.rs fix(pty): use async io to avoid polling (#523) 2021-05-24 15:00:49 +02:00
route.rs join router threads on exit 2021-05-22 22:19:50 +05:30
screen.rs Add ability to attach to sessions 2021-05-22 22:19:50 +05:30
tab.rs fix(compatibility): support wide characters (#535) 2021-05-26 18:05:43 +02:00
thread_bus.rs refactors for #525 (#534) 2021-05-27 16:28:28 +02:00
wasm_vm.rs Re-export common dependencies from zellij-utils 2021-05-19 01:35:53 +05:30