aboutsummaryrefslogtreecommitdiff
path: root/src/tty/windows
Commit message (Collapse)AuthorAge
* Split alacritty into a separate cratesTheodore Dubois2019-04-28
| | | | | The crate containing the entry point is called alacritty, and the crate containing everything else is called alacritty_terminal.
* Fix ConPTY panicAndrew Opalach2019-04-22
|
* Improve errors for missing shell file on Windows Christian Duerr2019-04-21
| | | | | | | | | | | | The ConPTY had a cryptic 'assertion failed: success' error whenever spawning the shell failed. This changes the ConPTY assertion to a human-readable error which clearly states that the file could not be found. The WinPTY backend has not been fixed yet. This fixes #2016.
* Fix duplicate resize eventsChristian Duerr2019-04-14
| | | | | | | | | | | | | | | | If a resize event is identical to the current size, it is no longer propagated but the resize is discarded immediately. To further prevent resizes when not necessary, the list of monitors is enumerated and the DPR of the first display is assumed to be the target DPR. This allows spawning a window with dimensions when the config has columns and lines specified and the window only needs to be resized if the estimated DPR is not correct. Fixes #1825. Fixes #204.
* Upgrade to winapi 0.3.7David Hewitt2019-04-04
|
* Add rustfmt style guideChristian Duerr2019-03-30
|
* Fix invalid --working-dir string ptr for ConPTYAlex Purdy2019-03-14
|
* Fix signal handling on Unix systemsRachel K2019-03-12
| | | | | | | | | | | | | | | | | | | | This removes the the signal handling machinery in tty::unix, and replaces it with functionality from signal-hook, which should be more robust. Signals caught by signal-hook wake up the existing I/O event loop, which then delegates back to the PTY to handle them. In particular, this allows `SIGCHLD` (i.e. child process exits) to shut down the terminal promptly, instead of sometimes leaving the window lingering. Fixes #915. Fixes #1276. Fixes #1313. As a side effect, this fixes a very rare bug on Linux, where a `read` from the PTY on the master side would sometimes "fail" with `EIO` if the child closed the client side at a particular moment. This was subject to a race condition, and was very difficult to trigger in practice.
* Add dynamic title support for WindowDavid Hewitt2019-03-07
|
* Make start_daemon behaviour on Windows consistent with UnixDavid Hewitt2019-03-04
| | | | | | | In cases where the Alacritty process had invalid std handles then the ConPTY subprocess would fail to spawn. By setting appropriate flags we prevent these handles from being passed to the ConPTY subprocess.
* Fix panic on exit with ConPTYDavid Hewitt2019-02-21
| | | | | | | | Even though the `ClosePseudoConsole` API does not have a return value, it was incorrectly queried by the `Drop` implementation for the ConPTY, leading to a panic on exit. The definition of this call has been updated to match the actual function signatures, which resolve this problem.
* Move clippy tests to stableChristian Duerr2019-01-23
| | | | | | | | | | | | The clippy tests had to be run on nightly previously since it wasn't available with the stable compiler yet, however this had the potential to fail a lot since not all nightly builds offer clippy. Since clippy is now available for stable rust, moving clippy to a stable build should make sure that the failure rate of the CI job is cut down to a minimum. This fixes https://github.com/jwilm/alacritty/issues/2007.
* Normalize Log Message StringsNathan Lilienthal2019-01-07
| | | | | | The general style for errors, warnings and info messages is to start with a capitalized letter and end without a period. The main exception is when dealing with nouns that are clearer with special case handling, e.g. "macOS failed to work" or "ioctl is borked".
* Change default Windows shell to PowerShellJason Shirk2019-01-02
| | | | | | | | | Update the Windows shell settings and comments so they look familiar to Windows users, but comment out the shell settings for consistency with Linux and Mac. Stop checking COMSPEC when the configuration file does not specify which shell to use, and just default to PowerShell.
* Add support for Windows ConPTY APIDavid Hewitt2018-12-28