Commit Graph
571 Commits
Author SHA1 Message Date
Joe Wilm 471237d2ce Fix panic when resizing
The selection might have a beginning or end that is outside the bounds
after a resize and cause a panic on subsequent draws. Easy solution is
to just clear the selection on resize.
2017-08-21 10:59:45 -07:00
Gabriel Martinez 5009566ea5 Add background_opacity option to set terminal transparency (#331)
The option is an Alpha struct that ensures that the contained float is
between 0.0 and 1.0. Background colors are multiplied by the opacity
to properly alpha blend them.
2017-08-20 09:55:45 -07:00
Maxim Baz 4e9b1c590e Move rust dependency to the Prerequisites section (#724)
* Move rust dependency to the Prerequisites section
* Remove reference to a specific compiler version
2017-08-12 12:49:57 -07:00
Maxim Baz 492d1bd3d5 Add rust to the list of Arch Linux dependencies
Fixes #718
2017-08-11 11:27:36 -07:00
Joe Wilm 2e98bd9578 Add ref test for 24-bit vim BCE 2017-08-11 08:29:56 -07:00
Joe Wilm 071c72b3cd Fix smcup/rmcup toggle bug
Resolves #634.
2017-08-11 08:29:56 -07:00
Joe Wilm 6de7ee0c51 Rename some variables for clarity 2017-08-11 08:29:56 -07:00
Joe Wilm dd7eb92d68 Fix warnings on macOS 2017-08-11 08:29:56 -07:00
Joe Wilm f041ce0f59 Fix BCE issues affecting vim
Now pass more vttests as well.

Resolves #123
cc #660 - screenshot there exhibited the problem, but issue is not
entirely about the background problem.
2017-08-11 08:29:56 -07:00
Jack O'Connor 11af896734 remove unused macros
This silences a couple of compiler warnings in the build.
2017-08-08 08:55:04 -05:00
Joe Wilm 702df40da4 Read more from pty
Resolves an issue with partial draws where programs like vim would send
data, but only part of it would be drawn.

The logic for escaping when a write is pending has been removed in favor
of limiting bytes processed during a pty_read call.

The value of MAX_READ may not be ideal.
2017-07-31 12:57:17 -07:00
Tuomas Siipola 9b13e344f0 Support background and foreground color escape codes (#662) 2017-07-28 15:14:18 -07:00
Tuomas Siipola e33168eff7 Don't panic when setting cursor visibility fails (#683)
Currently setting cursor visibility always fails on Wayland. It
shouldn't be a critical error on any platform.
2017-07-28 09:02:56 -07:00
Mike Hartington 11e67d9034 docs(): add instructions for mac apps (#688) 2017-07-28 09:02:05 -07:00
Martin Lindhe f3e0c8609f font: update macOS core-text dependency to 6.1.0, fixes #685 (#692) 2017-07-28 09:00:55 -07:00
Jörg Thalheim b5f7cc315b README.md: add NixOS (#694) 2017-07-28 09:00:04 -07:00
Ted Yin 4c4c2f5f5c add support for X input method (#691) 2017-07-24 17:54:06 -07:00
Joe Wilm 49c73f6d55 Use latest winit
Resolves #679
2017-07-21 13:34:52 -07:00
ftilde 2821902a4d Implement and use ansi attribute CancelBold (#659) 2017-07-20 10:54:40 -07:00
Joe Wilm 8e7dd009a4 Update to latest Glutin/winit (#671)
* Update to latest Glutin/winit

This *finally* gets us off the fork of Glutin we've been on for so long
and will unblock a number of other items. Functionality should be the
same as before.

The update forced our hand on a compiler update. It's no longer
feasible to pin on an old version. From now on, we require latest
stable.
2017-07-20 10:50:50 -07:00
Joe Wilm c8e4f366e7 Canonicalize the config watching path (#672)
This should resolve an issue where config behind a symlink was not being
properly reloaded when edited.
2017-07-19 12:26:45 -07:00
lukaslueg 94849c4f2a Fix typo in rustdoc (#654) 2017-07-08 10:33:17 -07:00
polyfloyd 3f3ef9ac15 Add a long option for the command flag (-e) (#655) 2017-07-08 10:32:56 -07:00
Joe Wilm 08b5ae52c1 Revert "Reduce InstanceData footprint"
This reverts commit 3cdba29124.

On some systems, the target commit actually caused a massive performance
issue rather than fixing one.
2017-07-03 19:45:21 -07:00
Ollie Ford 32dfddb91d Document binding keys to a command (#647)
* Refactor `key_bindings` documentation

* Document binding keys to a `command`

The ability for `key_bindings` to trigger a `command` was added in #566.
This commit documents their use, and gives a simple example.

Resolves #646.
2017-07-01 20:38:14 -07:00
Joe Wilm 3cdba29124 Reduce InstanceData footprint
The InstanceData type in the rendering subsystem was previously 16
floats which occupied a total of 64 bytes per instance. This meant that
for every character or background cell drawn, 64 bytes were sent to the
GPU. In the case of a 400x100 cell grid, a total of 2.5MB would be sent.

This patch reduces InstanceData's size to 26 bytes, a 60% improvement!
Using the above example for comparison, a worst case of 1MB would be
transferred.

The motivation for this patch comes from macOS. Once the terminal grid
would reach a certain size, performance experienced a sharp and dramatic
drop (render times would go from ~3ms to ~16ms). I don't want to
speculate too much on the underlying issue, but suffice it to say that
this patch alleviates the problem in my testing.
2017-07-01 10:24:50 -07:00
Dimas Cyriaco 5a220b73db Add Solus instructions 2017-06-30 23:13:13 -07:00
Joe Wilm 63787d0bf0 Use foreign-types from crates.io
We had previously vendored a very early version of this package before
it was ever published.
2017-06-27 09:29:09 -07:00
Joe Wilm e675044cfc Update README
Closes #636
Closes #592
2017-06-27 09:07:47 -07:00
Jake Merdich b4a839aee9 Add dim color support
Add support for the VTE 'dim' flag, with additional support for
custom-themed dim colors. If no color is specified in the config, it
will default to 2/3 the previous (not a spec, but the value other
terminals seem to use).

The actual dimming behavior brings bright colors to normal and regular
colors to the new dim ones. Custom RGB values are not changed, nor are
non-named indexed colors.
2017-06-23 11:27:15 -07:00
Joe Wilm 0091d3cb99 Update vte dependency
cc #68
2017-06-20 08:01:17 -07:00
Chris MacNaughton 3b1e2acd9b remove $SNAP variable inside snap environment 2017-06-20 07:56:30 -07:00
Chris MacNaughton 01f1bcec9c Adding snapcraft.yaml
Snapcraft makes Linux packaging very simple in a cross-distro
way. This adds the snapcraft.yaml file to setup a snap of
alacritty.
2017-06-20 07:56:30 -07:00
Joe Wilm f12fd880fe Update tests for new Selection API 2017-06-19 21:31:50 -07:00
Joe Wilm 6b081dcc95 Fix unnecessary redraws with active selection
Could be cleaned up a bit if there was a wrapper for Option<Selection>
that contained this flag.

Also fixes a few compiler warnings.
2017-06-19 21:31:50 -07:00
Joe Wilm 63bcb46011 Implement semantic and line selection dragging
Unlike the regular selection that is by cell, these selection modes
highlight either semantic groupings or entire lines while the mouse is
dragged.
2017-06-19 21:31:50 -07:00
Siva Mahadevan 3dfac443c7 Add dependency to FreeBSD-specific setup
Fixes problem I had with issue #609, should be better documented.
2017-06-18 17:05:11 -07:00
DarkDefender 35e4f2096a Fix bright inverse colors (#621)
Fixes #611.
2017-06-18 17:04:16 -07:00
Aaron Hill 1bd5c45b14 Implement 'backwards tab'
This escape sequence isn't officially documented anywhere, but is
supported by xterm and gnome-vte.
2017-06-18 17:03:13 -07:00
Aaron Hill 3c8514ba10 Make Travis test alacritty on nightly Rust, but allow failures
This allows us to notice and report any regressions that have occured on
nightly, without requiring tests to pass on nightly for the entire build
to succeed.

The `fast_finish` flag will cause Travis to mark the build as successful
if the only builds still running are allowed to fail (e.g. `nightly`).
This allows us to manually inspect builds (or implement some form of
notifications) to see if any nightly regressions have occured, without
slowing down the overall build time.
2017-06-14 11:33:44 -07:00
Aaron Hill f8e6f1f623 Use cursor cell template when handling 'CSI X' escape sequence
This ensures that the cleared cells are set to the proper background
color, which is the main usage of this escape sequence.

Fixes #612
2017-06-14 10:43:42 -07:00
Joe Wilm 529ac47fc8 Add support for Beam, Underline cursors
Notable about this implementation is it takes a different approach for
managing cursor cells that previously. The terminal Grid is now
borrowed *immutably*. Instead of mutating Cells in the Grid, a list is
managed within the RenderableCellsIter. The cell at the cursor location
is skipped over, and instead cells are popped off a list of cursor
cells.

It would be good in the future to share some more code between the
different cursor style implementations for populating the cursor cells
list.

Supercedes #349.
2017-06-11 13:21:13 -07:00
James A Keene 9825adf695 changes osx fallback symbol font style
Previously, the fallback symbol font copied the style of the font from
the config. However, the only available style for the fallback symbol
font is Normal slant, Normal weight.
2017-06-06 20:59:21 -07:00
Martin Algesten 40de8402a7 macOS use system font fallback 2017-06-06 09:47:32 -07:00
Tuomas Siipola 1e064fb3e7 Fix selection when padding is present 2017-06-06 08:26:36 -07:00
Niklas Claesson 84fc7c0bf9 CI with the oldest known working version of rust 2017-06-04 09:46:42 -07:00
Martin Algesten 8776b7ebd5 avoid named field shorthand 2017-06-01 09:47:58 -07:00
Martin Algesten 1fb2c843be final core-graphics extensions moved upstream 2017-06-01 09:47:58 -07:00
Martin Algesten d5ab4183c6 remove code that has been upstreamed 2017-05-31 09:30:54 -07:00
Martin Algesten dafa4ccde9 updated some font deps 2017-05-31 09:30:54 -07:00