summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-06-01final core-graphics extensions moved upstreamMartin Algesten
2017-05-31remove code that has been upstreamedMartin Algesten
2017-05-31updated some font depsMartin Algesten
2017-05-31avoid unused warningMartin Algesten
2017-05-31somewhat DRYer code for font loadingMartin Algesten
2017-05-29Implement FocusIn/FocusOut reports (#589)Aaron Hill
Implements sending FocusIn/FocusOut events, as defined at http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-FocusIn_FocusOut
2017-05-28Add config file as cli option (#576)Niklas Claesson
* Parse cli arguments before configuration file Parsing the cli arguments before the configuration file allows `--help` and `--version` to be used even if the configuration file is broken. * Add configuration file to command line arguments This commit adds a new command line flag `--config-file` to override the default configuration file location. If the specified file is unavailable, Alacritty will quit instead of generating a fallback. If the specified file is invalid, i.e. /dev/null, the compiled in defaults will be loaded instead.
2017-05-28Fixes font raster for mono, gray bitmaps (#590)Joe Wilm
As it turns out, FreeType does not always provide glyph data in LCD mode as we requested. We now correctly handle several common modes returned from FreeType including Lcd, Mono, and Gray. Note that we don't check number of grays at this time since it's 1. Almost always 256, according to FreeType docs 2. Not available in the Rust FreeType bindings being used Resolves #515 Resolves #185 Resolves #482
2017-05-27Find and set $WINDOWID to X11 window ID (#586)ns
2017-05-27Fix colors in macOS configJoe Wilm
2017-05-27Fix default color schemeJoe Wilm
Whites were being rendered very dark. Resolves #503.
2017-05-27Add script to apply a tilix colorscheme file. (#524)Trevor Joynson
2017-05-27Add terminfo file supporting true color, italicscac04
2017-05-27Remove incorrect close (#552)Niklas Claesson
Ownership of the slave file descriptor is passed to the process::Stdio structs and will be closed when they are dropped. If the slave fd is closed explicitly then the next fd that is opened during the same scope will get silently closed by the Stdio structs when they are dropped.
2017-05-25Update dependenciesJoe Wilm
2017-05-25Add support for running commands on key press (#566)Dominik Miedziński
Based on option `command` in key binding section in config, e.g. - { key: N, mods: Control|Shift, command: alacritty } # or - { key: N, mods: Control|Shift, command: { program: "alacritty", args: ["-e", "vttest"], }} specified command will be run in the background on key press. Alacritty doesn't wait for its result nor block IO.
2017-05-24Minor cleanup, style fix, dead code removalJoe Wilm
2017-05-24Add DrainResult enumAaron Hill
2017-05-24Fix typoAaron Hill
2017-05-24Ensure that the event loop thread cleanly exits on shutdownAaron Hill
Background: If a shell process exits with children still alive (typically due to the `disown` shell builtin), POLLHUP will not be sent to the master PTY file descriptor. This is due to the fact that the disowned process still has the slave PTY open as its STDIN, STDOUT, and STDERR. If a disowned process never reads or writes from its file descriptors (which is often the case for graphical applications), the event loop will end up blocking on poll()/select() when not handling user input received over the mio channel. When Alacritty shuts down and joins on the event loop thread, there can never be any more input on the mio channel - the main thread is no longer handling user keystrokes from the window. Unless a disowned process happens to access its slave PTY file descriptors, the event loop will never get the chance to deetect that it should exit. This commit extends the `Msg` enum to include an explicit `Shutdown` message, which ensures a clean shutdown (e.g. closing the 'recording' file). This allows the select()/poll() call to remain blocking, instead of needing to periodically check the shutdown state in between timed-out calls. Fixes #339
2017-05-24Fix #573. Ensure we don't write 0 bytes to ptyMartin Algesten
Any action that results in 0 bytes, such as pasting 0 bytes from the clipboard hangs the terminal (`pbcopy </dev/null` followed by ctrl-v), hangs the terminal on both macOS and Linux. This ensures we never send 0 bytes.
2017-05-12Use debug! instead of println!Dominik Miedziński
2017-05-10Add Shift+PageUp and Shift+PageDown to default key bindingsRonan Jouchet
2017-05-10Add Ctrl+PageUp and Ctrl+PageDown to default key bindingsMaxim Baz
2017-05-10Fix viewport_size.height calculationN-006
Closes #556
2017-05-08Fix Device Status reportsDominik Miedziński
2017-05-07Add support for Query Device StatusDominik Miedziński
2017-05-06Fix sign error in CoreText font rasterizerJoe Wilm
Descent was being reported as a positive value instead of negative. This caused the background and text alignment to be off dramatically. Resolves #545
2017-05-06Fix bug in SizeInfo::contains_pointJoe Wilm
Accidentally broke it when refactoring.
2017-05-06Work around ICEJoe Wilm
2017-05-06Add window padding optionTuomas Siipola
Padding can be configured by using the `padding` field in the config file, like so: padding: x: 2 y: 2 which would result in a 2px padding within each side of the window.
2017-05-06Fix glyph offsets in cellJoe Wilm
We previously had a hard-coded value for aligning glyphs within cells. The font descent is now used, and the offset should be correct by default.
2017-05-03Update build instructions about Homebrew Rust bugJoe Wilm
2017-05-03Remove old note about Mesa bugJoe Wilm
2017-05-03Fix whitespace in READMEJoe Wilm
2017-05-01Fix bug with tab renderingJoe Wilm
Closes #494. Resolves #529. Resolves #512. Resolves #493.
2017-05-01Combine FontOffset and GlyphOffset structs into Delta structAaron Williamson
The two structs are very similar, so there is no reason for them to be separate. Instead combine them into a single Delta struct, which can be used to shift a point in a two dimensional plane.
2017-05-01Add glyph offset option to user configurationAaron Williamson
Add the ability to move glyphs within their cells on a global basis via an option in the configuration file.
2017-05-01Remove unnecessary size argument to metrics functionAaron Williamson
The changes to metric consumption rendered the size argument unnecessary, remove it.
2017-05-01Improve freetype metric usageAaron Williamson
The font metrics function was using freetype metrics in an ineffective way, improve the use of those metrics and remove the now unnecessary separate default values for font offset in linux.
2017-05-01Add script for spawning alacritty in CWDJoe Wilm
The script uses the recently added _NET_WM_PID window property for finding the program running in Alacritty, fetching its working directory, and spawning a new Alacritty using that directory.
2017-05-01Support setting _NET_WM_PID in X11 environmentsJoe Wilm
Support is added for setting _NET_WM_PID automatically. This is to support scripting of the window environment. For example, this makes it possible to script opening a window with same CWD: 1. Retrieve the current window 2. (new) get PID of window 3. Check if it's Alacritty, find first child (presumably a shell), and get the child's cwd. 4. Spawn new instance of terminal with cwd. Unaddressed in this commit is how this will coexist on a Wayland system.
2017-05-01Support insert modeJoe Wilm
2017-05-01Add limit check in scroll_up/down_relativeJoe Wilm
2017-05-01Implement tab stop manipulationJoe Wilm
Adds implementations for TBC (tabulation clear) and HTS (set horizontal tabstop).
2017-04-23Add trailing semicolons to Categories and ActionsMaurice Berk
2017-04-23Fix spelling of CategoriesMaurice Berk
2017-04-21Update TERM config commentJoe Wilm
The previous comment was ambiguous and lead to questions on the tracker and in IRC.
2017-04-20Remove unused limit functionJoe Wilm
2017-04-20Fix some bugs with resizeJoe Wilm