Wez Furlong
e55233aa3d
add option to use mux domain
2019-06-09 11:41:47 -07:00
Wez Furlong
18d5814b4f
add stub for muxed tab
2019-06-09 11:35:17 -07:00
Wez Furlong
a89373be63
make mux traits Downcast-able
2019-06-09 11:14:43 -07:00
Wez Furlong
7197ee6277
add Downcast trait to FrontEnd
...
This removes some awkwardness in the impl by allowing casting
to a concrete implementation. This is a pattern I want to use
more widely and this diff proves the concept.
2019-06-09 11:13:05 -07:00
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
0a1dd49409
more dyn courtesy of cargo +nightly fix
2019-06-09 07:44:02 -07:00
Wez Furlong
8055957406
clippy
2019-06-09 07:33:00 -07:00
Wez Furlong
92917a3a66
use PtySize in Tab::resize interface
2019-06-09 06:53:24 -07:00
Wez Furlong
c8ad858a29
connect domain id to spawn_tab
...
Even though we currently only have a single domain, we're now able
to spawn tabs in alternate domains.
2019-06-08 21:31:33 -07:00
Wez Furlong
87e7a7089c
assign domains ids and associate tabs with them
...
The idea is that we can use this to spawn a tab in a
specific domain. For example, "spawn tab in domain of current tab"
or "spawn tab in default domain".
2019-06-08 21:30:54 -07:00
Wez Furlong
5ebad9e63a
dyn everywhere
2019-06-08 21:28:11 -07:00
Wez Furlong
f41c62c07b
another linux build fix
2019-06-08 18:46:53 -07:00
Wez Furlong
68d5287acb
fixup linux build
2019-06-08 18:25:12 -07:00
Wez Furlong
75a950328a
tweak log level for ignored freetype error
2019-06-08 15:40:57 -07:00
Wez Furlong
5bf2268292
more log changes
2019-06-08 15:30:47 -07:00
Wez Furlong
34d6d95b6f
adopt log and env_logger for logging
2019-06-08 15:17:41 -07:00
Wez Furlong
000c5eddac
Add CloseCurrentTab key binding
...
Added CMD-W as a default binding for this action.
refs: https://github.com/wez/wezterm/pull/26
2019-06-08 10:27:45 -07:00
Wez Furlong
9d13429fc9
refactor default key assignment, add CMD-M to Hide
...
refs: https://github.com/wez/wezterm/issues/32
2019-06-08 09:16:59 -07:00
Wez Furlong
f10e59245e
add Hide/Show key actions
...
Usage example is to put this in your `wezterm.toml` to get the
macOS CMD-M shortcut for minimizing a window:
```
[[keys]]
key = "m"
mods = "CMD"
action = "Hide"
```
Refs: https://github.com/wez/wezterm/issues/32
2019-06-08 08:37:50 -07:00
Wez Furlong
3b94cddf8e
allow specifying key bindings in wezterm.toml
...
refs: https://github.com/wez/wezterm/issues/32
2019-06-08 08:28:34 -07:00
Wez Furlong
45596f44be
refactor key handling; add KeyAssignment
...
This is a step towards having configurable key bindings
refs: https://github.com/wez/wezterm/issues/32
2019-06-07 21:53:44 -07:00
Wez Furlong
024e1afcda
move CMD-N new window dispatch into guicommon
...
This was blocked by some awkwardness in figuring out which
gui frontend was in use and queueing up the spawn and then
more ugliness in glutin.
That has subsequently been sorted out with the newer executor
stuff, so cut this over.
This is a tiny baby step towards a bigger key binding config
and thus refs: https://github.com/wez/wezterm/issues/32
2019-06-07 20:43:13 -07:00
Wez Furlong
12d49980c8
speculative fix for linux build
2019-06-04 21:34:09 -07:00
Wez Furlong
0c8cba99af
centralize calling Mux::add_tab to Domain::spawn
2019-06-04 08:11:55 -07:00
Wez Furlong
95d2479ea6
gui_executor is intended to be obtainable from any thread
2019-06-04 08:11:55 -07:00
Wez Furlong
d4bc053493
Add Mux::default_domain and use it
...
This tidies up the various spawning call sites and
reduces some code duplication too!
2019-06-04 08:11:55 -07:00
Wez Furlong
f642bd56d6
introduce mux Domain concept
...
All locations that were setting up ptys now do so via the
Domain concept. We still need a way to set up a persistent
global domain.
2019-06-04 08:11:55 -07:00
Wez Furlong
74bbf01014
fix 'already borrowed' panic with large pastes
2019-06-02 13:00:30 -07:00
Wez Furlong
bf719caaf3
allow using cmd-v to paste on linux
...
This is useful in a vmware vm on macos
2019-06-02 07:44:22 -07:00
Wez Furlong
71fd9c3ed7
thread palette through on each render call
...
This is slightly inefficient in that it copies the palette
for each call, so may want to revisit this if things feel
sluggish.
2019-06-01 16:07:08 -07:00
Wez Furlong
2ec436a4b9
make the frontends get the palette from the terminalstate
...
This isn't complete because it only copies it at startup
into the renderer.
2019-06-01 16:01:00 -07:00
Wez Furlong
038100922a
clippy
2019-05-26 12:49:10 -07:00
Wez Furlong
607e180122
Range::contains is now stable; use it.
2019-05-26 11:40:33 -07:00
Wez Furlong
3f48387079
fixup mac build for extern crate changes
2019-05-26 09:21:58 -07:00
Wez Furlong
e1a1530d22
remove boxfnonce: now require rust 1.35+
...
Rust can now naturally deal with with these constructs, so drop the
external crate.
2019-05-26 09:14:20 -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
7bf1d99d77
move pty to its own crate in preparation for publishing
...
Refs: https://github.com/wez/wezterm/issues/27
2019-05-19 18:40:26 -07:00
Wez Furlong
c207142bcf
Improve performance on windows
...
I noticed that things were feeling laggy in general and when I
added some debugging prints I noticed that we were getting a
continuous stream of CursorMoved events with the same coordinates
while the window had focus.
This diff short circuits mouse processing in that situation and
makes things feel a bit more snappy.
2019-05-18 19:15:04 -07:00
Mark Thomas
073f9fb1f8
use AtomicUsize::new(0) instead of ATOMIC_USIZE_INIT
...
Replace ATOMIC_USIZE_INIT with AtomicUsize::new(0) as the constant has been
deprecated in favour of calling the constructor.
2019-05-05 06:57:32 -07:00
Wez Furlong
70593c215f
Prevent resizing smalling than 1x1
...
Fixes https://github.com/wez/wezterm/issues/25
2019-05-04 09:18:43 -07:00
Wez Furlong
9646e035df
don't self deadlock when processing a lot of eg: resize events
...
This is fixed by allowing the gui thread to use an unbounded queue
of spawned functions, and keeping non-gui-threads bounded.
2019-05-04 09:07:43 -07:00
Wez Furlong
736f617f13
make the window close button kill the current tab
2019-03-25 22:14:19 -07:00
Wez Furlong
52be4c9ba7
remove use-winpty feature flag
2019-03-25 19:46:59 -07:00
Wez Furlong
d040b94b62
add config option to select pty system
2019-03-25 19:35:13 -07:00
Wez Furlong
cac06e5506
rename pty traits, make selectable via enum
2019-03-25 12:06:49 -07:00
Wez Furlong
10165fac32
traitify the pty module
2019-03-25 11:45:52 -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
416311892b
windows: extract Child
2019-03-25 07:25:43 -07:00