Wez Furlong
325e755216
window: don't propagate errors from close notif channel
...
When a window is being destroyed we expect the receiver end
to be disconnected, so we don't want to break out of the
message loop if a couple of residual windows fail to notify.
2021-05-08 10:20:26 -07:00
Wez Furlong
453cfc1813
avoid a panic during shutdown
2021-05-08 09:36:20 -07:00
Wez Furlong
e81fb6e721
make alpha work on macos
2021-05-08 09:36:20 -07:00
Wez Furlong
0503abc63a
fixup build on windows, make transparent
2021-05-08 09:36:20 -07:00
Wez Furlong
655eef271f
fixup build on macos
2021-05-08 09:36:20 -07:00
Wez Furlong
058c3f612f
add wgpu example
2021-05-08 09:36:19 -07:00
Wez Furlong
f4939c510b
impl raw window handle on Window
2021-05-08 09:36:19 -07:00
Wez Furlong
c4e1f2434a
add raw-window-handle impls
2021-05-08 09:36:19 -07:00
Wez Furlong
3d760653b4
window: macos: disable window restoration
2021-05-08 09:36:19 -07:00
Wez Furlong
a44607fb3f
with_window inner from FnMut -> FnOnce
...
Not sure why it was FnMut, but this tidies up an awkward
option/take/unwrap thing in notify().
2021-05-08 09:36:19 -07:00
Wez Furlong
fb72338689
window: macos set gl layer placement to top-left
2021-05-08 09:36:19 -07:00
Wez Furlong
89dfeb69d6
tweak message pumping around paint on win32
...
It's not perfect; the revised code won't repaint immediate during
resize which can make the window a little "wobbly" during resize.
2021-05-08 09:36:19 -07:00
Wez Furlong
2e74663628
fixup log level for context loss
2021-05-08 09:36:19 -07:00
Wez Furlong
630d9d215b
fixup build on windows
...
and correct the notify same thread optimization on unix
2021-05-08 09:36:19 -07:00
Wez Furlong
0f384b5c06
make window.notify more efficient on unix
...
avoid going through an extra queue if we already are in the right place
2021-05-08 09:36:19 -07:00
Wez Furlong
9fd04f6024
fixup linux build
2021-05-08 09:36:19 -07:00
Wez Furlong
5d037eae52
adjust gui layer for window changes
2021-05-08 09:36:19 -07:00
Wez Furlong
4d73448387
window: fixup build for macos
2021-05-08 09:36:19 -07:00
Wez Furlong
fe836da980
window: fixup build on windows
2021-05-08 09:36:19 -07:00
Wez Furlong
d56bfd0b7f
window: separate gui window state from app state
...
Removes the callbacks type and replaces event dispatch with
an async capable channel.
This makes it a bit simpler to model some of the window internals,
and to prepare for a wgpu enabled future.
This changes have been tested only on linux so far.
2021-05-08 09:36:19 -07:00
Wez Furlong
f9a6e265e9
avoid panics in a couple of cases
...
test case: `cat /dev/random`
refs: https://github.com/wez/wezterm/issues/769
2021-05-08 01:02:44 -07:00
Wez Furlong
ff153ba27f
vtparse: recognize utf8 encoded c1 codes in more cases
...
There were two bugs here:
* \u8D (the utf8 encoded representation of 0x8d, aka: RI) was not
recognized as a C1 code and was instead passed through as printable
text.
* The \u8D is a zero-width sequence which means that a subsequent
set_cell call on the new empty-by-default line wouldn't allocate
any cells in the line array, and the assigment to the line would
panic.
This commit avoids the panic for the second case, and then fixes up
the vtparser to correctly recognize the sequence as a C1 control.
refs: https://github.com/wez/wezterm/issues/768
2021-05-08 00:39:29 -07:00
Wez Furlong
9a1314c5b1
docs: changelog for voidsymbol
2021-05-07 07:59:26 -07:00
Chris
2add312c5c
Allow VoidSymbol keycode to be seen by wezterm ( #759 )
...
* allow voidsymbol for key code
* update docs, cleanup
* cleanup and fmt of files
* remove unnecessary inputs
2021-05-07 07:54:24 -07:00
Wez Furlong
d64b785290
deps: update windows dep to 0.4 -> 0.9
...
dependabot keeps trying and failing because lots of things changed.
Let's try and get ahead of it...
2021-05-03 22:05:35 -07:00
Wez Furlong
e400f2f524
fixup build on windows
...
refs: https://github.com/wez/wezterm/issues/695
2021-05-03 21:40:20 -07:00
Wez Furlong
b2b0b8b011
fixup build on linux
...
refs: https://github.com/wez/wezterm/issues/695
2021-05-03 21:09:08 -07:00
Wez Furlong
0df755b8f0
window: set_inner_size now returns Future<Dimensions>
...
This should help us reason about whether a resize respected
our request.
This may break linux and windows builds, will fixup once
this is pushed.
refs: https://github.com/wez/wezterm/issues/695
2021-05-03 20:49:22 -07:00
Wez Furlong
772991a1f0
window: remove WindowOpsMut trait
...
It doesn't serve any purpose and makes it awkward to make
a change in a later commit.
refs: https://github.com/wez/wezterm/issues/695
2021-05-03 20:26:33 -07:00
Wez Furlong
494fa999bb
fix system ssh config path
2021-05-03 19:54:09 -07:00
Wez Furlong
a594298947
add window
object to debug overlay
...
refs: https://github.com/wez/wezterm/issues/641
2021-05-03 18:36:26 -07:00
Wez Furlong
57ab9e36f5
restore features post wezterm-ssh release
2021-05-03 09:58:27 -07:00
Wez Furlong
4af66ff4b1
wezterm-ssh: prep for release
2021-05-03 09:57:04 -07:00
Wez Furlong
7be475efb7
cargo update
2021-05-03 09:34:29 -07:00
Wez Furlong
0e9d86f9f9
lua: print -> log_info
...
Make print equivalent to log_info.
Improve the various log functions so that all of their arguments
are considered.
refs: https://github.com/wez/wezterm/issues/641
2021-05-03 09:19:52 -07:00
Wez Furlong
09f0421b48
add lua repl to the debug overlay
...
`wezterm` is pre-imported.
The repl prints the result of the expressions to the overlay.
refs: https://github.com/wez/wezterm/issues/641
2021-05-03 09:19:44 -07:00
Wez Furlong
8b71a57513
add debug overlay
...
Adds a `ShowDebugOverlay` key assignment that will create a tab
overlay that shows a limited number of recently logged events.
refs: https://github.com/wez/wezterm/issues/641
2021-05-03 09:19:38 -07:00
Frieder Bluemle
0b84df38db
Fix docs typos
2021-05-02 19:44:29 -07:00
Wez Furlong
2be2c8832c
docs: add fedora 34 stable download
2021-05-02 17:46:32 -07:00
Wez Furlong
fbcea3a2f4
docs: update for 20210502-154244-3f7122cb
2021-05-02 16:13:32 -07:00
Wez Furlong
3f7122cb3f
ci: wezterm-bin no longer exists
2021-05-02 15:42:44 -07:00
Wez Furlong
bff6815df1
docs: typo fix changelog
2021-05-02 13:02:08 -07:00
Wez Furlong
e4d45de9ec
cargo fmt
2021-05-02 12:59:31 -07:00
Wez Furlong
6a5582f45a
fixup tests for new_window async change
2021-05-02 12:43:00 -07:00
Wez Furlong
7a86f1b2b8
fixup word selection on long lines
...
This got a bit broken by the fix for https://github.com/wez/wezterm/issues/714
since we can be handed a range of logical line fragments, we should
test each of them to find our matching result.
Also, improve the logic for constraining the length when looking
backwards.
2021-05-02 12:40:16 -07:00
Wez Furlong
6919630810
refactor: new_window is now async
...
This doesn't really change anything, but it makes it a little
simpler to integrate wgpu in a later commit.
2021-05-02 12:05:28 -07:00
Wez Furlong
e210cdf8ea
docs: add fedora 34
2021-05-02 09:52:57 -07:00
Wez Furlong
46c759a08f
ci: add fedora 34
2021-05-02 09:29:40 -07:00
Wez Furlong
c963f5a7ab
docs: update color scheme screenshots
...
This picks up the new schemes, and also the larger default
font size.
2021-05-02 07:52:38 -07:00
Wez Furlong
a45c500eba
update colorschemes
...
https://github.com/mbadolato/iTerm2-Color-Schemes.git @
ea6f5ff97f23902bb62334bfc8f4974fbd65b48b
2021-05-02 07:47:23 -07:00