Commit Graph
468 Commits
Author SHA1 Message Date
Zach Day 2bcd165a78 Add CLI arg for setting working directory
Resolves #478.
2017-04-18 19:53:31 -07:00
Joe Wilm a3d00f01b1 Fixes for vttest cursor movement screen 1 2017-04-18 19:53:31 -07:00
Joe Wilm a27f166ef9 Implement LF/NL 2017-04-18 19:53:31 -07:00
Joe Wilm 35f8f152cf Fix delete key binding for macOS 2017-04-18 19:33:23 -07:00
Jan Holthuis b169459c99 Fix delete key binding
Resolves jwilm/alacritty#192.
2017-04-18 19:33:23 -07:00
Joe Wilm 7bc1691b0f Add ref test for tab rendering 2017-04-04 09:03:33 -07:00
Roman Shmatov 302ba5adc6 fix tabulation rendering 2017-04-04 09:03:33 -07:00
Joe Wilm 9acd612b23 Better error handling in event loop
Also checks hup first since if the terminal is either not readable or
writable there's nothing for Alacritty to do.

Closes #480.
2017-04-03 21:34:21 -07:00
Lukas Holecek 52c979bc08 Fix hang on exit after child process failed
Quick test (works ~50%) is to press Ctrl+C followed by Ctrl+D.

Reproducible on Arch Linux with OpenGL from NVidia.

Fixes #228
2017-04-03 21:34:06 -07:00
Michel Boaventura 4dcd7c4c0d Enable Shift + Insert to paste
Shift + Insert is a default bind to paste selection.
2017-04-03 20:54:04 -07:00
Justin Charette 5b079f6d43 Do not replace $SHELL with --command option
Signed-off-by: Justin Charette <charetjc@gmail.com>
2017-04-03 20:46:08 -07:00
Joe Wilm 2d1af06c2d Update ref tests
Implementing BCE caused a few ref tests to fail erroneously.
2017-04-03 20:44:23 -07:00
Joe Wilm 79576b6c0b Add better printing for ref test failure
The previous format was extremely difficult for a human to parse.
2017-04-03 20:44:23 -07:00
Joe Wilm a66d19f633 Fix issue with htop rendering incorrectly
Since we're emulating xterm, we need to support back_color_erase. If
this is found to cause any issues, please open a ticket on GitHub.

Resolves #85.
2017-04-03 20:44:23 -07:00
Zetok Zalbavar 8d4c10dad6 Remap Copy and Paste to use Shift + Control instead of Command
Closes #307.
2017-03-27 09:09:47 -07:00
Niklas Claesson 715d4f8be8 Add Action to desktop file
The added Action allows the user to open new alacritty windows on
systems that support it.

https://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#extra-actions
2017-03-08 12:00:38 -08:00
Joe Wilm 3c6b32014c Merge pull request #462 from brycefisher/cema-mac-app-tweaks
OSX: Add app packing tooling - tweaks and polish
2017-03-08 07:47:25 -08:00
Bryce Fisher-Fleig 8445c761f0 Setup locale properly in new shell (thanks @casimir) 2017-03-07 09:09:43 -08:00
Bryce Fisher-Fleig ad56e3b761 (fix) Associates .desktop file with running process in Linux desktop OSes
Addresses #455
2017-03-06 14:42:30 -08:00
Bryce Fisher-Fleig 86b0708143 Remove LSEnvironment from info.plist
This seems to have broken the app by triggering a 'LSOpenWithUrls' error. However, I suspect this is why the path is not passed into the alacritty shell properly.
2017-03-06 11:47:27 -08:00
Bryce Fisher-Fleig 018beee8b6 Changes recommended by @mondras 2017-03-06 10:27:25 -08:00
Semyon Pisarev e63a52d4db Fix launcher script 2017-03-06 10:27:25 -08:00
Semyon Pisarev 6f5c2552c8 Add LSEnvironment 2017-03-06 10:27:25 -08:00
Semyon Pisarev 2f0e31888f Add tiny wrapper to start from '$HOME' 2017-03-06 10:27:25 -08:00
Semyon Pisarev dc72b1324f Add install target 2017-03-06 10:27:25 -08:00
Petter Uvesten 0a6ffaab5f Updated Makefile to put binary in subdir 2017-03-06 10:27:25 -08:00
Semyon Pisarev 0ef98733ea Add Makefile and .app 2017-03-06 10:27:25 -08:00
Semyon Pisarev 377193c5ed Ignore temp files 2017-03-06 10:27:25 -08:00
Aaron Hill aa76b29ff7 Handle CSI command J3 (Clear saved lines)
Xterm supports an extension to the CSI command `Erase in Display (ED)`,
under the command number 3. This command is used to clear the scrollback
buffer - e.g. anything not visible on the screen.

Since scrollback is not part of alacritty, the handler for this
command currently does nothing. If at some point scrollback is implemented,
the corresponding `match` arm can be modified to properly handle this.

For an example of a program which uses this command, run the `clear`
command (using ncurses 6.0). In a supported terminal such as
`gnome-terminal`, this will clear anything off of the screen from the
scrollback buffer. Before this change, `alacritty` would generate
an `Unhandled CSI` message.
2017-03-04 15:49:10 -08:00
Aaron Hill d7c0b1115a Handle OSC command '1' (Set Icon Name) 2017-03-03 15:09:29 -08:00
Joe Wilm 00d271b7e0 Fix bug parsing OSC strings
OSC strings with UTF-8 previously failed.
2017-03-02 09:19:01 -08:00
Joe Wilm 119c7d2856 Add support for wide characters 2017-03-02 09:19:01 -08:00
Harlan Lieberman-Berg 55876522a2 font::fc: Remove unneeded clone 2017-03-01 22:07:14 -08:00
Harlan Lieberman-Berg 7bb89e50df font::ft: misc style cleanup. 2017-03-01 22:07:14 -08:00
Harlan Lieberman-Berg d5342a78cd Drop unnecessary unsafe on add_charset 2017-03-01 22:07:14 -08:00
Harlan Lieberman-Berg 6ed7d99453 Switch over to using font_match everywhere. 2017-03-01 22:07:14 -08:00
Harlan Lieberman-Berg 50f27af643 Rework font cache to cache on paths
This is done in order to help prevent us from loading the same
font face over and over again under separate keys.  We still incur
the performance hit of doing the fontconfig search each new glyph,
but that's unavoidable without more extensive refactoring.
2017-03-01 22:07:14 -08:00
Harlan Lieberman-Berg 3ad6869967 First pass of font fallback rendering 2017-03-01 22:07:14 -08:00
Joe Wilm 4b4a187fbd Fix fc::Pattern::add_charset
The lifetime constraints didn't do what I thought, and such constraints
turn out to be unnecessary anyhow.
2017-03-01 22:07:14 -08:00
Joe Wilm 28700ed3dc PoC find font with glyph 2017-03-01 22:07:14 -08:00
Ronan Jouchet f10394e003 Fix #447 - yml: mention showkey -a to get x sequence from key
Am not touching the -macos yaml, as I'm not sure this works under macOS.
2017-03-01 15:18:50 -08:00
Joe Wilm 53507ce7d0 Add ref test for tab background highlighting
Generated with

    echo -e "\x1b[48;5;31m1\t2\n\n3\x1b[0;m"
2017-02-27 08:05:11 -08:00
Anders Rasmussen 96a1503040 Update cell to cursor template when adding a tab. 2017-02-27 08:05:11 -08:00
Joe Wilm 31ed5160a0 Change cursor colors config to use text and cursor
This changes the cursor color config to use the `text` and `cursor`
properties instead of the current `foreground` and `background`
properties. The latter names stop making sense when dealing with cursors
like a vertical bar or underscore. In the new system, the block,
underscore, or vertical bar would always take the color of `cursor`, and
the text would take the color of `text` when using a block, or keep its
normal color when using the underscore or vertical bar.

A warning is now emitted on startup when the old form of cursor color
config is used. This will be a hard error in the future.
2017-02-25 07:55:35 -08:00
Anders Rasmussen fef965c121 hide mouse cursor mac os 2017-02-22 21:07:38 -08:00
Mark Andrus Roberts f1ea49b75d Lazily reset start_time in VisualBell's completed method
Fixes #416. Here's what I think is happening: at short `duration`s, the
VisualBell's [`completed` check](https://github.com/jwilm/alacritty/blob/3ce6e1e4b2924b0d432cbb3e62b4bbef88dd38ff/src/term/mod.rs#L377)
is returning `true` before we've actually had a chance to draw the "normal"
background color. I thought about driving this condition off of whether or not
`intensity` returns 0.0, but we may still miss a draw, I think. Perhaps the best
way to tackle this is to let `completed` lazily reset the VisualBell's
`start_time` (something @jwilm asked about when this feature originally landed),
and to only return `true` when the VisualBell's `start_time` is `None`. This
should effectively delay the final draw until after the VisualBell completes.
2017-02-22 20:57:00 -08:00
Tuomas Siipola 604cc6b25e Document hide cursor when typing behaviour 2017-02-22 14:49:29 -08:00
Tuomas Siipola 2d89f79a29 Fix cursor visibility when window lost focus 2017-02-22 14:49:29 -08:00
Tuomas Siipola 3cc27a4d76 Set cursor only when its visibility changes 2017-02-22 14:49:29 -08:00
Tuomas Siipola 7bb49fabfa Add hide cursor when typing option 2017-02-22 14:49:29 -08:00