aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* Load the primary clipboard when pastingjc00ke2017-01-30
| | | | | Paste & PasteSelection are not quite the same. The former should be pulling from the main clipboard where the latter does not.
* Update to serde 0.9 and serde-yaml 0.6.Joe Wilm2017-01-29
|
* support for inverting the cursor or using colorsDanny Dulai2017-01-29
|
* Add support for -e argumentNiklas Claesson2017-01-28
|
* Optimize glyph cache accessJoe Wilm2017-01-26
| | | | | | | | | | | | | | | | | | | | | | Loading a glyph from the cache is a very hot operation in the renderer. The original implementation would first check if a glyph was loaded and then call `get()` which would have to search a second time. This showed up as a very slow point in profiles. This patch addresses glyph cache access in two ways: by using a faster hasher optimized for small keys (fnv), and by using the entry API for fetching a cached glyph. The `fnv` hasher is faster than the default and is very efficient for small keys. Using the entry API on the HashMap means only 1 lookup instead of two. The entry API has a downside where the key needs to get cloned on fetches. Reducing the GlyphKey width to 64-bits helps in both areas. Copying an 8-byte wide type is very cheap and thus limits downside of the entry API. The small width also helps with the hasher performance. Over all, this patch reduced typical render times by several hundred microseconds on a 2013 MacBook Pro with a full screen terminal full of text.
* Implement argument passing in configNiklas Claesson2017-01-25
| | | | | | | | | | | | This commit implements the following syntax in the config file: ```yaml shell: program: /bin/bash args: - --login - --norc ```
* Use clap as cli parser.Kurnevsky Evgeny2017-01-24
|
* Change to process::CommandNiklas Claesson2017-01-23
|
* Remove debug_print! macrosJoe Wilm2017-01-23
| | | | The logging macros should be used instead.
* Return an error from logging::initializeJoe Wilm2017-01-23
| | | | | Logging initialization now shares the same error handling code as the rest of the `run` function.
* Minor formatting fixesJoe Wilm2017-01-23
|
* Changes to Logger logicJoe Wilm2017-01-23
| | | | | | The logger implementation will now only show items from Alacritty. Additionally, the module info is omitted from the log output. If the origin of a log item must be found, it can easily be grepped for.
* Use the log-crate instead of printing to stdoutLukas Lueg2017-01-23
|
* Dynamically generate test harnessSteven Fackler2017-01-23
| | | | | | This uses the rustc-test crate, a copy of the standard test crate, to dynamically create tests for each reference test. No need to remember to update the macro, just add the directory to ref!
* ansi: Designate and invoke graphic character setsRichard Palethorpe2017-01-21
| | | | | | Implement the designation of graphic character sets G0-G3 to ASCII or the Special character and line drawing glyphs. As well as the invokation/selection of the character sets (shift in, shift out and lock shifting).
* Remove unnecessary featureOula Kuuva2017-01-18
| | | | Proc_macro has been stable since 1.15.0, attribute no longer needed.
* Make it run on FreeBSDjohalun2017-01-18
|
* Cleanup getpwuid_r wrapperJoe Wilm2017-01-15
| | | | | The wrapper had some transmutes still from an earlier implementation, and they are not needed now.
* make thin stroke rendering configurableTom Crayford2017-01-12
| | | | | | Makes thin stroke rendering for darwin configurable by a new toplevel key under `font:` in the config file. Defaults to false, has no impact on non macos.
* Proposal for line wrap - ^[[7h and ^[[7l (private)Michael Brumlow2017-01-11
| | | | | | | | | | | | | | | | | | These changes provide support for disabling auto line wrap which is currently default to on. 'tput rman' will now disable auto line wrap and alacritty will now not automatically wrap lines. 'tput sman' will now (re)enable auto line wrap and alacritty will now automatically wrap lines once it reaches the end of the line. My testing showed this to work the same as gnome-terminal. I should note that simply having ^[[7h or ^[[7l in a recording does not enable and disable line wrapping. This is the same behavior as gnome-terminal and xterm. Those cape codes come through as private which are not handled yet. I behave this is the correct behavior.
* Fix bug where event loop could get stuck readingJoe Wilm2017-01-11
| | | | | | | One symptom of this bug was being unable to send C-c during `cat /dev/urandom`. cc #271
* Add support for setting title from OSCJoe Wilm2017-01-11
| | | | | Resolves #23 Resolves #144
* Fix last panic with `cat /dev/urandom`Joe Wilm2017-01-09
|
* Fixing panic on cat /dev/urandomMichael Brumlow2017-01-10
| | | | | | | | | | | | | | | | - Checks to make sure lines count coming from the pty are within a proper range before doing scrolling. - Sanitizes scroll region when being set. - Changes panic for unimplemented screen clear to a print statement. The first two changes ensure scrolling won't crash us. By sanitizing the region on set we don't have to complicate the scroll code with limits, mins, or maxes to ensure the scroll operation is within the range. Checking if the lines is greater than the total region allows us to simply clear the region and avoid subtracting large numbers from small ones.
* Add another optional config path `$HOME/.alacritty.yml`Alberto Corona2017-01-09
| | | | - Added note about the default file created if no path is found
* Support config path `$XDG_CONFIG/alacritty.yml`Alberto Corona2017-01-09
| | | | - Update README to reflect changes
* Conform to XDG spec for configurationAlberto Corona2017-01-09
| | | | | | - Use $XDG_CONFIG_HOME/alacritty/alacritty.yml for loading the configuration file falling back to $HOME/.config/alacritty/alacritty.yml - Closes #203
* Merge pull request #236 from tcrayford/print_glutin_eventsJoe Wilm2017-01-08
|\ | | | | print glutin events if --print-events is passed
| * print glutin events if --print-events is passedTom Crayford2017-01-08
| | | | | | | | | | | | | | | | When debugging many issues, it's often very helpful to have the raw glutin events printed out to stderr as they come in. This does that. Note that since `glutin::Event` doesn't implement `Display`, we just use rust's debugging output for now via `{:?}`.
* | Remove some dead codeJoe Wilm2017-01-08
| |
* | Fix parsing of coalesced SGR attributesJoe Wilm2017-01-08
|/ | | | cc #116
* Merge pull request #216 from mbrumlow/better_bounds_checkingJoe Wilm2017-01-07
|\ | | | | Better bounds checking.
| * Changes requested.Michael Brumlow2017-01-07
| | | | | | | | | | | | - Rename wrap to input_needs_wrap and providing documentation. - Standardize on min. - Optimization on subtracting col.
| * Removing stale comment.Michael Brumlow2017-01-07
| |
| * Implementing line wrapping.Michael Brumlow2017-01-07
| | | | | | | | | | This implementation of line wrapping ensures self.cursor.col is never out of bounds, thus not requiring checking.
| * Better bounds checking.Michael Brumlow2017-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove the use of limit. - Reduce the number of comparisons. When using numbers provided by the PTY for subtractions there is a extra step of ensuring that we won't trigger failure on testing when trying to subtract form zero. ** NOTE ** This commit fails fails the tmux_git_log test. I am submitting a PR to talk about the test. I think the test was generated before a few things were fixed the final test gird still has cells that should have been scrolled off the screen. Also, comparing output from gnome-terminal there is no difference. So this PR is here to discuss and gather information on balding test and discussing the possibility that this test may be flawed. ** NOTE **
* | Fixing resize crashes.Michael Brumlow2017-01-07
|/ | | | | | | | | Most of the crashes on resize were due to columns and lines being set to zero. This causes all sorts of other checks within the code to ensure these values are greater than zero before running calculations. To avoid this we just need to ensure that lines and columns are some non zero value. This is seems to be what gnome terminal does. I have selected 2 lines and two columns for min terminal size for now.
* Merge pull request #164 from mbrumlow/fix_boundsJoe Wilm2017-01-07
|\ | | | | Fixes a slew of bounds issues.
| * Fixes a slew of bounds issues.Michael Brumlow2017-01-07
| |
* | Merge pull request #138 from honza/masterJoe Wilm2017-01-07
|\ \ | | | | | | Add "shell" option to config
| * | TypoHonza Pokorny2017-01-07
| | |
| * | Avoid unwrap when determining proper shell to useHonza Pokorny2017-01-07
| | |
| * | Avoid unnecessary closure in a map callHonza Pokorny2017-01-07
| | |
| * | Add doc string to 'shell' config optionHonza Pokorny2017-01-07
| | |
| * | Add "shell" option to configHonza Pokorny2017-01-06
| | | | | | | | | | | | | | | | | | This allows you to configure the shell to use when alacritty starts. cc: #122
* | | Fix issue with some international inputsJoe Wilm2017-01-06
| |/ |/| | | | | cc #87, #55
* | Clippy fixes!Manish Goregaokar2017-01-06
| |
* | Add `nightly` feature, use for `unlikely` intrinsicManish Goregaokar2017-01-06
| |
* | Remove need for inclusive rangesManish Goregaokar2017-01-06
| |
* | Remove need for range_contains featureManish Goregaokar2017-01-06
| |