Commit Graph
1300 Commits
Author SHA1 Message Date
Christian Duerr 2f93fb34b1 Fix legacy xparsecolor regression 2019-08-28 19:21:25 +00:00
Christian Duerr b6c5f6918c Fix url highlight not showing with required modifiers 2019-08-28 16:13:49 +00:00
Christian Duerr 4ccda1aaa5 Fix legacy xparsecolor regression
The legacy xparsecolor implementation assumed that the \007 ending would
be passed to the parser, however it never is. This caused colors in the
format #rrggbb to be interpreted as #rrggb, leading to incorrect colors
showing up in Alacritty.

Fixes #2759.
2019-08-28 18:12:10 +02:00
Christian Duerr 5f7fb4c3e2 Fix url highlight not showing with required modifiers 2019-08-26 18:11:36 +02:00
Christian Duerr 06e52a6266 Fix style issues in zsh completions 2019-08-25 12:46:53 +00:00
Christian Duerr a7cf053c88 Add bold italic font support
If the terminal escape sequences for bold and italic text are active,
the text should be rendered as bold and italic. However, due to missing
support in Alacritty, it would always render this text in bold.

This adds support for combining the bold and italic escapes to render
text in both styles and allows users to override the font for this
scenario using the `font.bold_italic` configuration option.
2019-08-25 12:35:19 +00:00
Chris Morgan e69f259d0e Add bold italic font support
If the terminal escape sequences for bold and italic text are active,
the text should be rendered as bold and italic. However, due to missing
support in Alacritty, it would always render this text in bold.

This adds support for combining the bold and italic escapes to render
text in both styles and allows users to override the font for this
scenario using the `font.bold_italic` configuration option.
2019-08-25 14:30:42 +02:00
Oliver Kiddle d86eff6f14 Follow zsh conventions in zsh completion
Declaring curcontext etc local is superfluous as _arguments states are
not used. It is also superfluous to include an outer function definition
syntax in zsh autoloadable functions. Zsh convention is not to
capitalize descriptions. It is also better to use the imperative mood
verb form for descriptions as this allows them to start with the
shortest form of the verb - e.g. "reduce" instead of "reduces" and
results in better grammar in the absence of a sentence subject. I'd
recommend this in the --help output too. Using _guard for the position
and dimensions was unnecessary given that the values are not mixed with
other matches.
2019-08-25 02:45:48 +02:00
John Sullivan ad0365219f Show text cursor when pressing shift in mouse mode
Fixes #2550.
2019-08-24 23:18:50 +00:00
rbong 629ea247cd Follow xparsecolor spec in escape sequences
Escape sequences in xterm are parsed according to xparsecolor.
xparsecolor supports 1, 2, 3, and 4 digit hex colors.
Previously, only 2 digits were supported.

This also fixes a bug where "fX" was parsed as "0xf", where X is an invalid character.

The response to a request for fg/bg must be a valid escape sequence.
The current response uses 4-digit hex, which was previously invalid.
2019-08-19 19:56:27 +00:00
Bastien Orivel a8692983f5 Update depedencies 2019-08-18 02:46:29 +00:00
Christian Duerr d9d698614c Fix clippy issues 2019-08-16 01:33:49 +02:00
Kirill Chibisov 1da986ae2b Fix smithay-clipboard integration
Fixes: #2574
2019-08-16 01:33:37 +02:00
Christian Duerr 5cf77bf250 Format code 2019-08-08 23:30:10 +02:00
Koichi Murase 33cfc52909 Ignore unsupported CSI sequences
Instead of ignoring unexpected intermediates in CSI escape sequences,
the intermediates are now explicitly checked and the escape sequence is
rejected when an unexpected intermediate is found.

Fixes #2171.
2019-08-06 22:59:16 +00:00
Kirill Chibisov b20d285782 Fix multiple underlines/strikeouts on the same line
This commit fixes regression introduced in ddee14a.
2019-08-06 22:46:02 +00:00
Christian Duerr 14fa02648e Remove errno depedency 2019-08-04 20:17:22 +00:00
Christian Duerr ddee14a6ef Fix lines in last line not rendered when scrolled up
Instead of creating the rectangles for lines after the line is
completed, the rectangle is now initialized as soon as it is started.
Then when following cells also contain the same line type, the rectangle
is updated.

This resolves the problem of having to finish the last line when it ends
in the last non-empty column in the last line, since the render iterator
only returns non-empty cells and we never get the information that the
underline has ended.

Fixes #2680.
2019-08-04 19:40:57 +00:00
Kirill Chibisov e1892ee92a Fix crash when hovering over message bar
This commit fixes a regression introduced in 9dddf64.

Fixes #2699.
2019-08-04 16:01:08 +00:00
Christian Duerr 5a40149069 Move modifier check before URL search
This makes sure that the URL search is only initiated when all required
modifiers are held down. This should improve performance with long URLs.
2019-08-03 13:19:33 +00:00
Christian Duerr 9dddf649a1 Switch to rfind_url for URL detection
This switches to rfind_url for detecting URLs inside the grid. Instead
of expanding at the cursor position, the complete terminal is searched
from the bottom until the visible region is left with no active URL.

Instead of having the field `cur` publicly accessibly on the
`DisplayIterator`, there are the two methods `DisplayIterator::point`
and `DisplayIterator::cell` for accessing the current element of the
iterator now. This allows accessing the current element right after
creating the iterator.

Fixes #2629.
Fixes #2627.
2019-08-01 15:37:01 +00:00
Christian Duerr f51c7b067a Remove color from log output
Fixes #2474.
2019-08-01 14:26:55 +00:00
Alex Touchet 28b726cbfa Organize Readme OS list 2019-08-01 04:58:32 +00:00
Christian Duerr 86b9cdbabe Bump minimum supported Rust version to 1.34.0 2019-07-30 22:13:51 +00:00
Kirill Chibisov 72dfa477a9 Fix cursor flickering on url hover
This commit fixes the regression introduced in 84aca67 and also fixes url
highlight bounds computation when url ends on a last column.

Fixes #2665.
2019-07-28 17:04:26 +00:00
Wild Kat 14a48a2533 Update gl_generator to 0.13 2019-07-28 17:03:52 +00:00
Ben Firth 54dca06bfb Fix double-click selecting trailing tab
Fixes #2639.
2019-07-26 11:18:47 +00:00
Kirill Chibisov 44c1e9093d Fix copypasta README.md formatting 2019-07-24 23:45:58 +00:00
Roman Holovin f49350fd5b Respect fontconfig's embeddedbitmap setting
Fixes #2655.
2019-07-23 21:21:11 +00:00
Christian Duerr a23b372f34 Fix NetBSD build failure
Fixes #2631.
2019-07-22 18:56:08 +00:00
Mihyaeru 76dd84bef8 Remove redundant use statement on macOS 2019-07-16 15:45:46 +00:00
Christian Duerr 3c3239b1cb Override default bindings with subset mode match
Fixes #2641.
2019-07-15 21:32:48 +00:00
Alex 1c05b3bb0c Query DirectWrite for the rendering mode to use 2019-07-14 10:53:04 +00:00
Kirill Chibisov 9a159a7760 Fix cursor color setting with escape sequence
The cursor rework introduced a regression where cursor color was always picked
from a config file, rather then using `ansi::NamedColor::Cursor` for this
purpose.

This commit also removes `CursorText` option from `NamedColor` enum,
since we can't speculate with `CursorText` during runtime.

Cursor rework commits:
  cfc20d4f34
  371d13f8ef
  0d060d5d80
2019-07-10 21:24:04 +00:00
Christian Duerr c4d2725e14 Fix row occ not set during new and reset
Since ref tests were only stored whenever winit requested the window
close, they would not get stored properly when the terminal was closed
through Alacritty using `exit`, Ctrl+D or similar.

This moves the ref test code to the and of the main entry point, which
will always be executed regardless of how the terminal was shutdown.

Fixes #2613.
2019-07-10 21:17:20 +00:00
Kirill Chibisov a99547cc6d Fix mouse move handling
This commit fixes the regression introduced in
84aca67296.

Fixes #2635.
2019-07-10 18:27:43 +00:00
Elaina Martineau 84aca67296 Change mouse cursor when hovering over the message bar 2019-07-08 18:13:55 +00:00
Kirill Chibisov 7331e89122 Add class and short title completions
Fixes #2612.
2019-07-08 15:19:42 +00:00
Christian Duerr 165246f50a Fix saving of ref tests
Since ref tests were only stored whenever winit requested the window
close, they would not get stored properly when the terminal was closed
through Alacritty using `exit`, Ctrl+D or similar.

This moves the ref test code to the and of the main entry point, which
will always be executed regardless of how the terminal was shutdown.
2019-07-07 14:51:11 +00:00
Kirill Chibisov ed7ed473da Fix doc box drawing symbols 2019-07-07 13:14:04 +00:00
Brian Koropoff 228c641769 Allow setting gtk variant and general class on X11 2019-07-06 19:34:56 +00:00
Lê Viết Hoàng Dũng e398eb8406 Use Menlo as fallback font on macOS
This commit makes alacritty use Menlo as a fallback font on macOS if the config specified font family isn't found.
2019-07-06 09:00:16 +00:00
Fabian Homborg 707f429366 Suggest installing fish completions per-user
This uses $fish_complete_path[1], which should be in the
user's home directory, so `sudo` is no longer needed.
2019-06-30 16:04:09 +00:00
Christian Duerr a3f56a5f09 Fix X11 clipboard hanging with mime set 2019-06-29 14:35:53 +00:00
Christian Duerr af30f3735a Fix rows only resetting partially
This resolves an issue with rows only resetting partially, based on
their `occ` state. However this state is not always accurate, so more
than just the occupied elements need to be cleared.

Fixes #2340.
2019-06-28 20:19:15 +00:00
Kirill Chibisov 0815774cbf Perform clear and buffer swap before showing window
This should fill window with background color while it is offscreen instead of
showing it with uninitilized surface and then performing `clear`. So, the new
behavior should prevent glitches during startup. e.g. content of the windows
below, garbage from drivers and so on.
2019-06-25 21:34:55 +00:00
Christian Duerr e2e25b3206 Fix first unfullscreen on fullscreen mode launched window 2019-06-25 21:32:28 +00:00
Benjamin Bauer 5ad1e8b75f Fix dependencies for Archlinux in INSTALL.md 2019-06-25 15:04:14 +00:00
Christian Duerr f002171c84 Fix performance issues with text reflow
Fixes #2567.
Fixes #2414.
2019-06-23 23:29:01 +00:00
Gabriel Silva Simões 743d5d9c66 Update manual install instructions for Void Linux 2019-06-23 15:46:24 +00:00