Commit Graph
290 Commits
Author SHA1 Message Date
Alex Mikhalev 7cbc50fd2f Added Alacritty.desktop file and instructions to README.md 2017-01-06 13:05:55 -07:00
Joe Wilm 8d3f5f4e17 Fix panic when closing window
Resolves #81.
2017-01-06 11:22:47 -08:00
Joe Wilm 99ef2bef9e Add default macOS config
Should solve the `monospace` issue people are seeing for now.
2017-01-06 11:17:48 -08:00
quininer kel 2befe3681e Write default config when not found 2017-01-06 11:17:33 -08:00
Joe Wilm 7d07b5a165 Add README instruction for macOS config 2017-01-06 10:48:22 -08:00
Joe Wilm 96590ffccf Emphasize pre-alpha in the README 2017-01-06 09:34:33 -08:00
Joe Wilm 1c4a5b3985 Add note about this release being pre-alpha 2017-01-06 09:31:44 -08:00
Joe Wilm a582e47f71 Merge pull request #66 from pengowen123/master
Add prerequisites for Arch Linux
2017-01-06 08:31:58 -08:00
Joe Wilm 41f7fae34a Merge pull request #60 from MagaTailor/master
Fix compilation on ARM/AARCH64
2017-01-06 08:31:29 -08:00
Joe Wilm 5f6dedd7d3 Handle EINTR in I/O loop
This fixes an issue where encountering some signals panicked the event
loop thread.

Resolves #76
2017-01-06 08:25:40 -08:00
Joe Wilm 0bf19d2d67 Merge pull request #67 from rudism/window-name
Added --title argument to set window title
2017-01-06 08:13:28 -08:00
Rudis Muiznieks c0054d0fe2 Added --title argument to set window title 2017-01-06 09:18:23 -06:00
pengowen123 a14ab11521 Add prerequisites for Arch Linux 2017-01-05 13:52:11 -07:00
Joe Wilm 3c57c03887 Merge pull request #59 from quininer/modsspace
Allow key_binding mods have space
2017-01-05 07:15:12 -08:00
Taylor Trump cf3e569800 Fix ARM 2017-01-05 15:22:51 +01:00
Taylor Trump fb3a9fa80a Fix ARM 2017-01-05 15:21:24 +01:00
quininer kel 0b157c4e92 Allow key_binding have space 2017-01-05 21:45:46 +08:00
Joe Wilm 54525dedb6 Merge pull request #56 from durka/patch-1
macOS: cmake is not required
2017-01-04 22:55:25 -08:00
Alex Burka dcd4e01c22 macOS: cmake is not required
The build Works On My Machine (tm) without cmake. OSX 10.9.5
2017-01-05 01:40:38 -05:00
Joe Wilm 693aefcbd7 Draw the screen when Refresh event arrives
cc #53
2017-01-04 19:54:29 -08:00
Joe Wilm af1ce5b91b Merge pull request #49 from FliegendeWurst/patch-1
Fix typo in README
2017-01-04 12:41:34 -08:00
FliegendeWurst 9a7a6c4e0e Fix typo in README 2017-01-04 21:14:32 +01:00
Joe Wilm 93ee85c9cc Add note about forthcoming blog post 2017-01-04 09:17:56 -08:00
Joe Wilm 79d13c736e Send correct character sequence with alt key
Resolves #46.
2017-01-02 23:47:56 -08:00
Joe Wilm 38a9673eb3 Update README arrow keys FAQ 2017-01-02 20:49:32 -08:00
Joe Wilm 1edfef4a32 Have default mouse and key bindings
This improves the situation where the user has not installed the default
configuration file.

Resolves #42.
2017-01-02 20:42:57 -08:00
Joe Wilm edd5dc7da5 Fix scrolling with SGR mode
Resolves #43.
2017-01-02 20:25:28 -08:00
Joe Wilm 06991e6eee Better error message when xclip is not available
Resolves #37.
2017-01-02 20:15:24 -08:00
Joe Wilm a105be82cf Real support for placing config in XDG_CONFIG_HOME
Resolves #35.
2017-01-02 20:05:31 -08:00
Joe Wilm 8630185639 Rework font loading
This work started because we wanted to be able to simply say "monospace"
on Linux and have it give us some sort of font. The config format for
fonts changed to accomodate this new paradigm. As a result, italic and
bold can have different families from the normal (roman) face.

The fontconfig based font resolution probably works a lot better than
the CoreText version at this point. With CoreText, we simply iterate
over fonts and check it they match the requested properties. What's
worse is that the CoreText version requires a valid family. With
fontconfig, it will just provide the closest matching thing and use it
(unless a specific style is requested).
2017-01-02 19:49:38 -08:00
Joe Wilm 04d69e3c29 Write README.md 2017-01-02 12:53:08 -08:00
Joe Wilm d8f1750183 Fix rustc-version file 2017-01-01 21:40:18 -08:00
Joe Wilm 7c794ada88 Improve error handling for shader initialization
Shader initialization errors at startup should print a nice message now.
2017-01-01 19:19:15 -08:00
Joe Wilm d4e20a4741 Improve error handling for clipboard actions
Previously, these could have crashed alacritty. Now, they simply print
an error message in Red to stderr. The Red format wrapper was moved to a
central location where both main.rs and the alacritty lib can access it.
2017-01-01 19:09:27 -08:00
Joe Wilm 82bfc41af7 Add support for SGR mouse reporting
According to:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
2017-01-01 18:28:49 -08:00
Joe Wilm a86dfd1a11 Print nice error messages for font loading errors
Resolves #22.
2016-12-31 20:47:29 -08:00
Joe Wilm 2738969f29 Propagate font rasterizer errors
This allows consumers of the font crate to handle errors instead of the
library panicking.
2016-12-31 20:47:02 -08:00
Joe Wilm a00970c9a8 Add ffi-util crate and use in fontconfig wrapper
This cleans up and fixes the C-type wrapping for fontconfig.
2016-12-30 18:55:10 -08:00
Joe Wilm 44c6171bc0 Refactor FontConfig wrappers
There's now a proper wrapper in place for working with the FontConfig
library. This should help significantly with error handling with font
loading; at least, the FontConfig code shouldn't panic. The FreeType
rasterizer still needs to be updated to handle missing fonts, and a more
sensible default font should be specified.
2016-12-30 00:34:57 -05:00
Joe Wilm 72ff775b23 Improve RenderableCellsIter performance
Also adds a benchmark for cell.reset().
2016-12-29 21:56:49 -05:00
Joe Wilm 26ac1df0b1 Add Default impl for Cell
Just a bit of cleanup.
2016-12-29 21:43:55 -05:00
Joe Wilm a91a3f2dce Fix pty read sometimes not triggering draw
There was a lot of complexity around the threadsafe `Flag` type and
waking up the event loop. The idea was to prevent unnecessary calls to
the glutin window's wakeup_event_loop() method which can be expensive.
This complexity made it difficult to get synchronization between the pty
reader and the render thread correct. Now, the `dirty` flag on the
terminal is also used to prevent spurious wakeups. It is only changed
when the mutex is held, so race conditions associated with that flag
shouldn't happen.
2016-12-29 21:38:22 -05:00
Joe Wilm b704dafb24 Fix some bugs with selections
Moving the window on macOS would cause a panic in certain circumstances.
2016-12-29 20:53:41 -05:00
Joe Wilm f1336ee1c7 Implement clipboard store for x11 with xclip 2016-12-29 17:57:50 -05:00
Joe Wilm 818a2f6161 Add super hacky underline drawing
Using underscores because it's easy. It's also wrong.

cc #11
2016-12-29 16:05:32 -05:00
Joe Wilm d06360216d Hopefully fix read not triggering draw
The terminal mutex is no longer released between event processing and
doing a draw. This may fix the race condition with data arriving but not
being displayed until a subsequent event.

cc #29
2016-12-29 15:34:33 -05:00
Joe Wilm 689e0f4ad7 Unify Cursor, Location and name it Point 2016-12-29 11:09:29 -05:00
Joe Wilm 5ee031f55f Add silver searcher ignore file
Searching on the ref tests would find matches in the terminal recording
files and completely screw up the screen state.
2016-12-29 10:49:12 -05:00
Joe Wilm 115a4085b4 Fix selection copy for long lines
Long lines were previously broken at the terminal width. Now, a wrapping
marker is kept on the final cell so that extra newlines are not
inserted.
2016-12-29 10:43:58 -05:00
Joe Wilm 0f1c742857 Minor cleanup in main() 2016-12-27 22:47:25 -05:00