aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Adding dynamic_title property to configuration (#819)Wesley Gahr2017-12-24
| | | | | This logic is applied in Term's ansi::Handler implementation to avoid unnecessary allocations.
* Fix stack overflow with too large glyphsJoe Wilm2017-12-24
| | | | This resolves the remaining issue of #842.
* Move custom cursor block on ftChristian Dürr2017-12-24
| | | | | Moved the custom cursor block on ft to the top, so no unnecessary operations are executed when trying to draw a custom cursor glyph.
* Use font_key provided with cursor glyphsChristian Dürr2017-12-24
| | | | | | | Previously it was assumed that the font_key for the normal font is always 0, because this assumption was a bit of a stretch, now the font_key provided with the glyph is used. This is always the bold, italics or normal font associated with the cell.
* Fix linux symbol sizeChristian Duerr2017-12-24
| | | | | | | | | With linux every box, line or underline should now have the pixel-perfect size with any font at any size. This uses the default font to get the size of the monospace box. It assumes that the face 0 is always the primary font, if this is not the case, this will probably break.
* Remove the launcher and set the locale/current directory in alacritty (#879)Theodore Dubois2017-12-24
|
* Add box cursor to unfocused underline and beamChristian Duerr2017-12-24
| | | | | | | Because some people have requested this change, the beam and underline cursors now also transform into an empty box when the terminal loses focus. Like this there is one unique symbol to indicate that a terminal is not currently focused.
* Refactor darwin codeChristian Duerr2017-12-24
| | | | | | | The ascent calculation on darwin was more complicated than it needed to be. By running a `.ceil()` instead of adding one, checking if it's 0, substracting if it is, and then flooring it, a few instructions could be shaved off.
* Add custom box cursor for unfocused windowChristian Duerr2017-12-24
|
* Format cursor code and add documentationChristian Duerr2017-12-24
| | | | | | | | | | | | As requested a few comments have been added to the darwin code. There also was an off by one error in the ascent calculation which has been corrected. The beam cursor width has also been tweaked to be slightly slimmer in general. All code added in this PR has also been run through the default rustfmt to make sure the formatting is okay.
* Add custom cursors for macosChristian Duerr2017-12-24
| | | | | | The macos target now also supports the custom beam and underline cursors. The only thing left for this is now is testing and making sure it works with tiny fonts.
* Add custom beam cursorChristian Duerr2017-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | In issue jwilm/asacritty#31 a few people complained about Beam cursor being weird with their fonts, so to make all cursors uniform in alacritty, a custom cursor has been added for the Beam too. The beam cursor's height is always the full height of the monospace font glyph bounding box. The width depends on the font size. It is calculated using the width of the cell and dividing it by two. The block is always aligned at the far-left of the cell. The implementation is identical to the one of the underline cursor, but it has been refactored so the glyphs are created in `lib.rs`, which can be used by darwin/macos to implement these features too. A small bug in the underline cursor has also been fixed, until now the width was just using the width of the unicode character. Now it should be using the full width of the monospace glyph bounding box with every font. Here are some screenshots for the Beam cursor: ![Small](https://u.teknik.io/v1QH3.png) ![Normal](https://u.teknik.io/RTlp2.png) ![Big](https://u.teknik.io/DLu2M.png) ![Huge](https://u.teknik.io/pSAFX.png)
* Specify unicode code point explicitlyChristian Duerr2017-12-24
|
* Update comment to reference proper characterChristian Duerr2017-12-24
| | | | | | The unicode character comment has been updated to correctly reference the character instead of commenting on the variable that might be that character.
* Revert to old system for macosChristian Duerr2017-12-24
| | | | | | Because rendering with macos works differently, the old underline cursor is used for that. The cursor symbol has also been setup as a constant in the font project.
* Add custom underline cursorChristian Duerr2017-12-24
| | | | | | | | | | | | | | | As mentioned in jwilm/alacritty#931, it can be troublesome if a font has an underline symbol outside of the glyph's bounding box. This can lead to the underline disappearing at the bottom of the terminal. As a solution a symbol from the private use area was used as the character code for the underline symbol. Whenever this symbol is encountered, instead of rendering it, a custom block is rendered. In this implementation the block has the full character as width and sits flush with the bottom of the glyph's bounding box. The height is half the distance between the baseline and the bottom of the bounding box.
* Update glutin to v0.11chetgurevitch2017-12-23
|
* Update euclid to v16Chet Gurevitch2017-12-23
|
* Update bitflags to v1Chet Gurevitch2017-12-23
|
* Update glutin to v0.10Chet Gurevitch2017-12-23
|
* Update depsChet Gurevitch2017-12-23
|
* Update dependenciesJoe Wilm2017-12-23
| | | | Also fixes warning from gl generator
* Assure that newlines are in selections (#777)Dustin2017-12-22
| | | | | | | | | | | When a selection was made, the last line of the selection did not include a new line character when the line ending was selected. This would occur if only one line was selected; if multiple lines were selected, only the final line did not include a newline. This commit updates the `string_from_selection` function to attempt to append a newline character in all places where they are suitable. Because of the simplification of newline insertion, several trait implementations were removed.
* Remove debug printJoe Wilm2017-12-22
|
* Fix macOS fallbacks (#956)Joe Wilm2017-12-22
| | | | | | The cascade list is now generated from Menlo for all fonts. This doesn't feel correct to me, but it seems to give the expected behavior on macOS. One of the problems cited was that certain glyphs like ❯ would not be rendered with default cascade lists for some fonts.
* Remove built crateJoe Wilm2017-12-22
| | | | | This became a support burden for me due to various compile and run time issues.
* Update README.md for current state of macOSColin King2017-12-22
| | | | | Homebrew Rust will correctly compile `alacritty` now, and the monospace font is automatically set to `Menlo` at first launch.
* Add Void Linux to distrobutions with packagesBenjamin Hoffmeyer2017-12-22
| | | Void Linux has the alacritty package in the main repository's, so compilation from source isn't needed.
* Style nitsJoe Wilm2017-12-22
|
* Adapt pixel-based scrolling behaviorChristian Duerr2017-12-22
| | | | | | | | The pixel-based scrolling behavior has been adapted to be as similar to the line-based one as possible. I still have not been able to test this. But this should have a decent chance to at least kinda work.
* Fix faux scrolling for line-based touchpadsChristian Dürr2017-12-22
| | | | | | | | | | Touchpads which use line-based instead of pixel-based updates send partial scroll requests, so decimal numbers are important. The current implementation only really used scroll amounts that are either 1 or -1. This has been fixed and now the line-based touchpads should have very smooth scrolling, but the pixel-based approach is still WIP and completely untested.
* Implement faux scrollingChristian Duerr2017-12-22
| | | | | | | | This patch implements faux scrolling inside the alternate screen buffer. Whenever the user scrolls up or down while the alternate screen buffer is active, instead of actual scrolling three up/down arrow keys are inserted.
* Share LoadGlyph implementationsJoe Wilm2017-12-22
| | | | | | | Previously there were two separate but intended-to-be-identical implementations. Now the two implementations simply delegate to a single, shared method. This should help correctness issues in the future.
* Change LoadGlyph in LoaderApi to match RenderApiChristian Duerr2017-12-22
|
* Fix stack-overflow when creating a new atlasChristian Duerr2017-12-22
| | | | | | | | | | | | | | | | | When an atlas is full and the `insert` call fails, a new atlas should be created. This is the current strategy, however the atlas is put at the end of the vector, but the `current_atlas` index is set to 0, instead of the last element. This leads to a recursion where it keeps trying to insert into the full atlas at position 0 instead of the new at `atlas.len() - 1`. With this simple fix a stack-overflow is prevented because the new atlas is inserted as the first element, which then will be used correctly for loading new glyphs. This fixes jwilm/alacritty/issues/842 and might also solve jwilm/alacritty/issues/914 (I wasn't able to reproduce this with the latest master).
* Use consistent config deprecation message styleJoe Wilm2017-12-22
|
* Deprecate config top-level dimensions and paddingJoe Wilm2017-12-22
|
* Update config filesRobert Günzler2017-12-22
|
* Move dimensions and padding into window sectionRobert Günzler2017-12-22
|
* Add new window section to configRobert Günzler2017-12-22
| | | | Move/rename borderless into window_config as decorations
* Add borderless option to config filesRobert Günzler2017-12-22
| | | | See 46a1ee72267c0979e980607098ce4ef00a3db1ac
* Add 'borderless' optionRobert Günzler2017-12-22
| | | | | | Until winit gives us more capabilities in regard to window decorations this implements a simple switch that renders the window without any title bar or border
* Fix License link at the bottom of the readme (#933)Jon McDuffie2017-12-16
|
* On macOS when launching multiple times focus win (#941)Andrew De Ponte2017-12-13
| | | | | | | | | | | | | | | | I dug into this and narrowed the issue down to the macOS app bundle Info.plist file. So, I spun up a native macOS app real quick and tested it by launching the binary directly and launching it via the app bundle. When launching from the command line directly, it created multiple windows & instances of the app. However, when launching via the app bundle it behaved as I normally expect a macOS app to behave, that is when launched multiple times to simply focus the already existing window and instance. This informed me that it wasn't something in code as much as it was something in the app bundle configuration. Hence, I reworked the Info.plist file based on the one that was created by XCode when I made the native macOS app and it started behaving as expected.
* Remove the launcher and set the locale/current directory in alacritty (#879)Theodore Dubois2017-12-13
|
* Add cursor style option (#928)Christian Duerr2017-12-03
| | | | | | | | The default cursor can now be configured through the cursor_style field of the config. Valid options include Block, Underline, and Beam. The default can be restored by sending \e[0q as in VTE terminals. Live config reloading is supported for this parameter.
* clippy: do and don't pass some things by reference as suggested ↵Matthias Krüger2017-12-03
| | | | (needless_pass_by_value, needless_borrow).
* clippy: use is_empty() instead of len() == 0 (warn(len_zero)).Matthias Krüger2017-12-03
|
* clippy: remove unneeded return statement (needless_return).Matthias Krüger2017-12-03
|
* clippy: string constants do not need to have static lifetime ↵Matthias Krüger2017-12-03
| | | | (const_static_lifetime).