aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
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.
* Remove redundant closures and importsMatthias Krüger2019-04-11
|
* Set maximum Rust version to 1.31.0Christian Duerr2019-04-09
| | | | | | | | | | | | | By setting the minimum Rust version and enforcing it with CI, Alacritty should hopefully make it possible for maintainers to package the application even on distributions which are not rolling release. The 1.31.0 target has been chosen here because it's the first version of the Rust 2018 release. Bumping this version in the future should be considered to be a breaking change and should only be done with caution and in consideration of the supported Rust versions of the major distributions available. This fixes #2277.
* Add rustfmt style guideChristian Duerr2019-03-30
|
* Update --class docsChristian Duerr2019-03-29
| | | | | | Since the `--class` flag has been changed to take effect on Wayland too, the documentation has been updated to reflect that. The original change was made in #2077.
* Add text reflowChristian Duerr2019-03-13
| | | | | | | | | | | | | | | | | | | | Alacritty will now automatically reflow lines and shrink them when they would usually exceed the new width of the terminal instead of truncation. If a line had to be truncated, it will also be reflown into the previous line after growing the terminal width. The reflow behavior when not at the bottom of the history is similar to that of VTE and aims to keep the viewport stationary whenever possible. Opposed to VTE, reflow will also be performed in the alternate screen buffer. There will be bugs when resizing the terminal emulator to a size smaller than the prompt, though these issues were present in all terminal emulators with reflow support. This fixes #591.
* Add option for window position at startupCole Helbling2019-03-11
|
* Fix dimensions CLI/manpage docsChristian Duerr2019-02-10
|
* Set window title on WaylandChristian Duerr2019-02-06
| | | | | Fixes #1582. Fixes #1875.
* Upgrade to Rust 2018Joe Wilm2018-12-10
| | | | | This resolves a lot of NLL issues, however full NLL will be necessary to handle a couple of remaining issues.
* Display errors and warningsChristian Duerr2018-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make sure that all error and information reporting to the user is unified, all instances of `print!`, `eprint!`, `println!` and `eprintln!` have been removed and replaced by logging. When `RUST_LOG` is not specified, the default Alacritty logger now also prints to both the stderr and a log file. The log file is only created when a message is written to it and its name is printed to stdout the first time it is used. Whenever a warning or an error has been written to the log file/stderr, a message is now displayed in Alacritty which points to the log file where the full error is documented. The message is cleared whenever the screen is cleared using either the `clear` command or the `Ctrl+L` key binding. To make sure that log files created by root don't prevent normal users from interacting with them, the Alacritty log file is `/tmp/Alacritty-$PID.log`. Since it's still possible that the log file can't be created, the UI error/warning message now informs the user if the message was only written to stderr. The reason why it couldn't be created is then printed to stderr. To make sure the deletion of the log file at runtime doesn't create any issues, the file is re-created if a write is attempted without the file being present. To help with debugging Alacritty issues, a timestamp and the error level are printed in all log messages. All log messages now follow this format: [YYYY-MM-DD HH:MM] [LEVEL] Message Since it's not unusual to spawn a lot of different terminal emulators without restarting, Alacritty can create a ton of different log files. To combat this problem, logfiles are removed by default after Alacritty has been closed. If the user wants to persist the log of a single session, the `--persistent_logging` option can be used. For persisting all log files, the `persistent_logging` option can be set in the configuration file
* Update manpage to document all CLI optionsChristian Duerr2018-07-01
| | | | | | | The introduction of `--class` has added a flag to the CLI without adding it to the manpage. This has been fixed by updating the manpage. This also adds the default values of `--class` and `--title` to the CLI options.
* Override dynamic_title when --title is specifiedNathan Lilienthal2018-06-18
|
* Add working --class and --title CLI parametersTezkerek2018-06-07
|
* Update dependenciesgolem1312018-01-26
| | | | | | Updated the version of some dependencies. This also changes to a new clippy version so clippy can work with the latest nightly compiler again. Some issues created by new lints have been fixed.
* Remove built crateJoe Wilm2017-12-22
| | | | | This became a support burden for me due to various compile and run time issues.
* clippy: string constants do not need to have static lifetime ↵Matthias Krüger2017-12-03
| | | | (const_static_lifetime).
* Output more info for `--version` (#888)hcpl2017-11-11
| | | Useful when requesting more info to help investigating issues.
* Style fixesJoe Wilm2017-11-11
|
* Don't enforce window dimensions if configured with 0 columns or linesBryan Gilbert2017-11-11
|
* Use clippy = "*", update, and fix some warnings (#796)Aaron Hill2017-09-27
| | | | | Because there are so many clippy warnings in the current codebase, this commit removes '#![cfg_attr(feature = "clippy", deny(clippy))]', to make it easier to fix warnings incrementally.
* Change CLI live-config-reload options into flagsJoe Wilm2017-08-29
| | | | | | | | | | | | | | | The previous format of --live-config-reload=VAL had a specific set of allowed values which may not immediately be obvious. Instead, there are now two flags which control the behavior: --live-config-reload --no-live-config-reload If a user tries to specify both, the option parsing will fail with this message: error: The argument '--no-live-config-reload' cannot be used with '--live-config-reload'
* Implement options to not start the config_monitor thread (#689)Liu Wei2017-08-29
| | | | Provide a command line option as well as a configuration file option. The command line option takes precedence.
* Add a long option for the command flag (-e) (#655)polyfloyd2017-07-08
|
* Add config file as cli option (#576)Niklas Claesson2017-05-28
| | | | | | | | | | | | | | * 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.
* Add CLI arg for setting working directoryZach Day2017-04-18
| | | | Resolves #478.
* Do not replace $SHELL with --command optionJustin Charette2017-04-03
| | | | Signed-off-by: Justin Charette <charetjc@gmail.com>
* Configurable window dimensionsAnders Rasmussen2017-02-06
| | | | | | | | Adds a configuration option `dimensions` which will set initial window size by columns and lines. Changes to the config file will require restart. resolves #370
* Add support for -e argumentNiklas Claesson2017-01-28
|
* Use clap as cli parser.Kurnevsky Evgeny2017-01-24
|
* Use the log-crate instead of printing to stdoutLukas Lueg2017-01-23
|
* 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 `{:?}`.
* Added --title argument to set window titleRudis Muiznieks2017-01-06
|
* Display manages window, renderer, rasterizerJoe Wilm2016-12-11
| | | | | | | | | | This is part of an ongoing decoupling effort across the codebase and tidying effort in main.rs. Everything to do with showing the window with a grid of characters is now managed by the `Display` type. It owns the window, the font rasterizer, and the renderer. The only info needed from it are dimensions of characters and the window itself for sizing the terminal properly. Additionally, the I/O loop has access to wake it up when new data arrives.
* Cleanup cli option parsingJoe Wilm2016-12-11
This introduces the `cli` module and the `cli::Options` type. This type holds all the options passable on the command line in addition to providing arg parsing.