Wez Furlong
3a4673f22c
increase default font size a little
2019-02-17 17:58:57 -08:00
Wez Furlong
254b8ab96b
rustfmt
2019-02-17 17:45:54 -08:00
Wez Furlong
3bec16a4b9
tweak text shader
...
@Lompik reports that there are artifacts with certain color combos
and proposes simplifying the color blending by just copying the rgb
channel.
This does look better than what we're currently doing so I see no
reason not to adopt this for now, and we can revisit it later.
Refs: https://github.com/wez/wezterm/issues/17
2019-02-17 17:30:16 -08:00
Wez Furlong
133ccc3d0a
fixup shader selection for glutin vs. GLES
2019-02-17 17:13:11 -08:00
Wez Furlong
02b684366e
main now returns Result
...
More recent rust allows returning Result so we can eliminate
our little wrapper
2019-02-17 16:51:54 -08:00
Wez Furlong
3302b3bb64
be explicit about shaders outputting srgb
...
This helps correct the color brightness on windows
2019-02-17 16:42:21 -08:00
Wez Furlong
a8b899e25d
simplify glium init
...
The srgb and fallback stuff doesn't seem to make a difference, so
use the simplest form of the init.
2019-02-17 16:29:06 -08:00
Wez Furlong
89c0acf1e3
fixup some warnings, remove dead code
2019-02-17 16:24:55 -08:00
Wez Furlong
7f0727a512
partial revert of 4098931e62
...
Back out the scaling calculation portion of
4098931e62
, which didn't look right
with italic operator mono and also seemed to mess with glyphs
rendered via rusttype.
2019-02-17 15:41:37 -08:00
Wez Furlong
124b98cc05
fix flakey spawning on windows
2019-02-17 15:32:37 -08:00
Wez Furlong
d2372058ee
use comspec to locate the cli shell on windows
2019-02-17 14:46:20 -08:00
Wez Furlong
de52ce356d
don't build mio on win32
2019-02-17 14:37:07 -08:00
Wez Furlong
400a85befc
fixup process termination detection on windows
2019-02-17 14:02:03 -08:00
Wez Furlong
ad41cecd6e
make harfbuzz dep optional
2019-02-17 12:55:02 -08:00
Wez Furlong
dfdefb2ed4
Now basically functional on windows!
2019-02-17 12:11:12 -08:00
Wez Furlong
df99a4f3fb
fixup re-export of ExitStatus on unix
2019-02-17 09:07:31 -08:00
Wez Furlong
b387464054
implement pty enabled spawner for win32
...
We can now start a process with a new pty, but fail when we reach
the shader spec. Progress!
2019-02-17 09:05:37 -08:00
Wez Furlong
c650cbbf08
flesh out some of the windows pty impl
2019-02-16 23:46:18 -08:00
Wez Furlong
f976ca6e23
add rusttype rasterizer
2019-02-16 21:29:04 -08:00
Wez Furlong
12e2dcd181
add incomplete shaping plumbing
2019-02-16 17:12:54 -08:00
Wez Furlong
a4e1bd827e
start integrating rusttype and font_loader for windows
2019-02-16 16:15:39 -08:00
Wez Furlong
434c1a1664
wezterm.exe now links, but is missing lots of impl
2019-02-16 15:21:28 -08:00
Wez Furlong
70a98b63a7
more stubs for win pty
2019-02-16 15:15:51 -08:00
Wez Furlong
1580306138
flesh out winsize struct for win
2019-02-16 15:11:57 -08:00
Wez Furlong
2c3d56c717
sigchld is a unix concept
2019-02-16 15:08:52 -08:00
Wez Furlong
6d8e839b2b
no clipboard on windows yet
2019-02-16 15:05:38 -08:00
Wez Furlong
f42463b601
make pty reading slightly more portable to win
2019-02-16 15:03:34 -08:00
Wez Furlong
66a6b4b912
can run with glutin/x11/opengl on linux again
...
Not everything is implemented, and this isn't intended to be the main
usage at the moment, but it does prove to me on WSL that this codepath
works. I want to get native windows code working through here too.
2019-02-16 14:28:02 -08:00
Wez Furlong
8995974124
rejigger gliumwindows to not need non-blocking io for pty
2019-02-16 13:34:09 -08:00
Wez Furlong
6c32efe76e
minor tidy up of gluimwindows dead code
2019-02-16 09:54:16 -08:00
Wez Furlong
d95da9c159
add feature to force building with glutin on linux
...
this helps me verify from WSL that I didn't break compilation in
the refactoring to follow
2019-02-16 09:27:22 -08:00
Wez Furlong
9bc99f5f1c
tweak windows imports
2019-02-16 08:54:24 -08:00
Wez Furlong
77884e2522
fixup KeyCode variant usage
2019-02-16 08:53:59 -08:00
Wez Furlong
ebf7210ae6
stub out some windows vs unix bits
2019-02-16 08:21:21 -08:00
Wez Furlong
1ec7feb7fa
add glium dep for windows
2019-02-16 00:12:41 -08:00
Wez Furlong
cd9c6ad5d1
fixup compilation on windows
2019-02-16 00:09:30 -08:00
Wez Furlong
2db17562a6
rustfmt
2019-02-16 00:08:38 -08:00
Wez Furlong
4098931e62
improve rendering of emoji
...
We were scaling some of them down way too much, so use a simpler
scaling computation.
In addition, try to "crop" the glyph to the non-transparent bits.
This seems to improve the visible size of some single-width glyphs
that don't fully occupy the bitmap size.
2018-10-21 16:04:42 -07:00
Wez Furlong
ff20499a09
improve cell metrics for emoji font
...
Take the bitmap size for the metrics, rather than computing something
that has a 0 width.
2018-10-21 14:45:26 -07:00
Wez Furlong
ada197f94e
don't panic if we get confused by text char boundaries
...
This triggered for me when grepping a file containing various
foreign language translations (non UTF-8).
2018-10-21 14:45:26 -07:00
Wez Furlong
61fec42216
cargo fmt with current stable rustfmt
2018-09-19 20:06:31 -07:00
Wez Furlong
3090d5c6f4
update freetype and improve loading of emoji fonts on ubuntu 18.04
2018-09-19 17:53:13 -07:00
Wez Furlong
3d3a718182
Fixup phantom release mouse code when using mouse wheel
...
This was breaking scrolling in vim
2018-09-04 00:34:53 -07:00
Wez Furlong
62d43ddd63
avoid panic when some clients change scroll margins
2018-08-09 00:04:28 -07:00
Wez Furlong
9219dbb327
We can now take iterm images into the wezterm terminalstate
...
We don't yet have any code to render them, and the vte parser seems
to truncate incoming image sequences ~1kb in size, so more work is
needed to make this useful.
2018-08-08 09:00:07 -07:00
Wez Furlong
a267ebb576
add theoretical support for storing Images in the Surface
...
There's basic rendering also, but it is not complete.
Needs more tests; will come back to those once more scaffolding
is in place.
2018-08-08 07:07:31 -07:00
Wez Furlong
5d27265b7c
add some structs for holding image data
2018-08-06 21:54:17 -07:00
Wez Furlong
2f8ffab213
parse and encode some iTerm specific escape sequences
2018-08-06 01:23:25 -07:00
Wez Furlong
dfa3ef5ae6
fix missing paren for the bell print
2018-08-05 17:22:46 -07:00
Wez Furlong
d3d11d629f
fix rendering of reverse video
...
This got broken when unifying the termwiz color type; we used to
have enum variants for background and foreground colors, but now
we just have Default and we need to resolve using helper methods
in the palette.
That means we need to resolve the colors before we swap them for
reverse video.
Bonus: we can lift this out of the loop for the cell cluster.
2018-08-05 17:19:58 -07:00