2018-09-21 22:46:41 -04:00
|
|
|
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
2017-02-13 21:22:59 -05:00
|
|
|
|
|
|
|
# Any items in the `env` entry below will be added as
|
|
|
|
# environment variables. Some entries may override variables
|
2018-09-21 22:46:41 -04:00
|
|
|
# set by alacritty itself.
|
2018-10-07 14:40:58 -04:00
|
|
|
#env:
|
2018-09-24 15:06:12 -04:00
|
|
|
# TERM variable
|
2017-04-21 19:24:54 -04:00
|
|
|
#
|
2018-09-24 15:06:12 -04:00
|
|
|
# This value is used to set the `$TERM` environment variable for
|
|
|
|
# each instance of Alacritty. If it is not present, alacritty will
|
2019-01-17 04:17:26 -05:00
|
|
|
# check the local terminfo database and use `alacritty` if it is
|
|
|
|
# available, otherwise `xterm-256color` is used.
|
2018-10-07 14:40:58 -04:00
|
|
|
#TERM: xterm-256color
|
2017-02-13 21:22:59 -05:00
|
|
|
|
2017-12-20 14:30:22 -05:00
|
|
|
window:
|
2018-09-21 22:46:41 -04:00
|
|
|
# Window dimensions (changes require restart)
|
|
|
|
#
|
|
|
|
# Specified in number of columns/lines, not pixels.
|
|
|
|
# If both are `0`, this setting is ignored.
|
2017-12-20 14:30:22 -05:00
|
|
|
dimensions:
|
2019-01-17 04:17:26 -05:00
|
|
|
columns: 0
|
|
|
|
lines: 0
|
2017-12-20 14:30:22 -05:00
|
|
|
|
2019-03-11 08:35:49 -04:00
|
|
|
# Window position (changes require restart)
|
|
|
|
#
|
|
|
|
# Specified in number of pixels.
|
|
|
|
# If the position is not set, the window manager will handle the placement.
|
|
|
|
#position:
|
|
|
|
# x: 0
|
|
|
|
# y: 0
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Window padding (changes require restart)
|
|
|
|
#
|
2018-11-12 13:23:23 -05:00
|
|
|
# Blank space added around the window in pixels. This padding is scaled
|
2018-09-21 22:46:41 -04:00
|
|
|
# by DPI and the specified value is always added at both opposing sides.
|
2017-12-20 14:30:22 -05:00
|
|
|
padding:
|
|
|
|
x: 2
|
|
|
|
y: 2
|
|
|
|
|
2018-11-15 14:57:15 -05:00
|
|
|
# Spread additional padding evenly around the terminal content.
|
|
|
|
dynamic_padding: false
|
|
|
|
|
2017-12-20 14:30:22 -05:00
|
|
|
# Window decorations
|
2018-09-21 22:46:41 -04:00
|
|
|
#
|
|
|
|
# Values for `decorations`:
|
|
|
|
# - full: Borders and title bar
|
|
|
|
# - none: Neither borders nor title bar
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
|
|
|
# Values for `decorations` (macOS only):
|
2019-02-03 19:17:57 -05:00
|
|
|
# - transparent: Title bar, transparent background and title bar buttons
|
|
|
|
# - buttonless: Title bar, transparent background, but no title bar buttons
|
2018-09-20 11:24:26 -04:00
|
|
|
decorations: full
|
2017-05-06 11:45:23 -04:00
|
|
|
|
2019-04-23 15:05:47 -04:00
|
|
|
# Startup Mode (changes require restart)
|
|
|
|
#
|
|
|
|
# Values for `startup_mode`:
|
|
|
|
# - Windowed
|
|
|
|
# - Maximized
|
|
|
|
# - Fullscreen
|
|
|
|
#
|
|
|
|
# Values for `startup_mode` (macOS only):
|
|
|
|
# - SimpleFullscreen
|
|
|
|
startup_mode: Windowed
|
2018-11-19 16:23:47 -05:00
|
|
|
|
2018-03-09 13:45:40 -05:00
|
|
|
scrolling:
|
2018-09-21 22:46:41 -04:00
|
|
|
# Maximum number of lines in the scrollback buffer.
|
|
|
|
# Specifying '0' will disable scrolling.
|
2018-03-09 13:45:40 -05:00
|
|
|
history: 10000
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Number of lines the viewport will move for every line scrolled when
|
|
|
|
# scrollback is enabled (history > 0).
|
2018-03-09 17:02:45 -05:00
|
|
|
multiplier: 3
|
2018-03-09 13:45:40 -05:00
|
|
|
|
|
|
|
# Faux Scrolling
|
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# The `faux_multiplier` setting controls the number of lines the terminal
|
|
|
|
# should scroll when the alternate screen buffer is active. This is used
|
|
|
|
# to allow mouse scrolling for applications like `man`.
|
2018-03-09 13:45:40 -05:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Specifying `0` will disable faux scrolling.
|
2018-03-09 13:45:40 -05:00
|
|
|
faux_multiplier: 3
|
2018-02-16 20:54:32 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Scroll to the bottom when new text is written to the terminal.
|
2018-03-22 20:01:55 -04:00
|
|
|
auto_scroll: false
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Spaces per Tab (changes require restart)
|
2018-09-18 16:20:59 -04:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# This setting defines the width of a tab in cells.
|
2018-09-18 16:20:59 -04:00
|
|
|
#
|
|
|
|
# Some applications, like Emacs, rely on knowing about the width of a tab.
|
|
|
|
# To prevent unexpected behavior in these applications, it's also required to
|
|
|
|
# change the `it` value in terminfo when altering this setting.
|
2016-10-28 12:26:16 -04:00
|
|
|
tabspaces: 8
|
|
|
|
|
|
|
|
# Font configuration (changes require restart)
|
2016-06-30 12:04:06 -04:00
|
|
|
font:
|
2018-09-21 22:46:41 -04:00
|
|
|
# Normal (roman) font face
|
2019-01-20 12:39:15 -05:00
|
|
|
#normal:
|
2019-01-17 04:17:26 -05:00
|
|
|
# Font family
|
|
|
|
#
|
|
|
|
# Default:
|
|
|
|
# - (macOS) Menlo
|
|
|
|
# - (Linux) monospace
|
|
|
|
# - (Windows) Consolas
|
|
|
|
#family: monospace
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# The `style` can be specified to pick a specific face.
|
2019-01-20 12:39:15 -05:00
|
|
|
#style: Regular
|
2017-01-02 21:52:41 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Bold font face
|
2019-01-20 12:39:15 -05:00
|
|
|
#bold:
|
2019-01-17 04:17:26 -05:00
|
|
|
# Font family
|
|
|
|
#
|
|
|
|
# If the bold family is not specified, it will fall back to the
|
|
|
|
# value specified for the normal font.
|
|
|
|
#family: monospace
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# The `style` can be specified to pick a specific face.
|
2019-01-20 12:39:15 -05:00
|
|
|
#style: Bold
|
2017-01-02 21:52:41 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Italic font face
|
2019-01-20 12:39:15 -05:00
|
|
|
#italic:
|
2019-01-17 04:17:26 -05:00
|
|
|
# Font family
|
|
|
|
#
|
|
|
|
# If the italic family is not specified, it will fall back to the
|
|
|
|
# value specified for the normal font.
|
|
|
|
#family: monospace
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# The `style` can be specified to pick a specific face.
|
2019-01-20 12:39:15 -05:00
|
|
|
#style: Italic
|
2017-01-02 21:52:41 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Point size
|
2016-06-30 12:04:06 -04:00
|
|
|
size: 11.0
|
2017-01-15 12:38:04 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Offset is the extra space around each character. `offset.y` can be thought of
|
|
|
|
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
2016-06-30 12:04:06 -04:00
|
|
|
offset:
|
2018-03-13 02:07:40 -04:00
|
|
|
x: 0
|
|
|
|
y: 0
|
2016-06-30 12:04:06 -04:00
|
|
|
|
2017-01-15 12:38:04 -05:00
|
|
|
# Glyph offset determines the locations of the glyphs within their cells with
|
2018-09-21 22:46:41 -04:00
|
|
|
# the default being at the bottom. Increasing `x` moves the glyph to the right,
|
|
|
|
# increasing `y` moves the glyph upwards.
|
2017-01-15 12:38:04 -05:00
|
|
|
glyph_offset:
|
2018-03-13 02:07:40 -04:00
|
|
|
x: 0
|
|
|
|
y: 0
|
2017-01-15 12:38:04 -05:00
|
|
|
|
2019-01-17 04:17:26 -05:00
|
|
|
# Thin stroke font rendering (macOS only)
|
|
|
|
#
|
|
|
|
# Thin strokes are suitable for retina displays, but for non-retina screens
|
|
|
|
# it is recommended to set `use_thin_strokes` to `false`
|
|
|
|
#
|
|
|
|
# macOS >= 10.14.x:
|
|
|
|
#
|
|
|
|
# If the font quality on non-retina display looks bad then set
|
|
|
|
# `use_thin_strokes` to `true` and enable font smoothing by running the
|
|
|
|
# following command:
|
|
|
|
# `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
|
|
|
|
#
|
|
|
|
# This is a global setting and will require a log out or restart to take
|
|
|
|
# effect.
|
|
|
|
use_thin_strokes: true
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Display the time it takes to redraw each frame.
|
2016-06-30 12:04:06 -04:00
|
|
|
render_timer: false
|
2016-07-01 00:26:26 -04:00
|
|
|
|
Display errors and warnings
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
2018-11-17 09:39:13 -05:00
|
|
|
# Keep the log file after quitting Alacritty.
|
|
|
|
persistent_logging: false
|
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# If `true`, bold text is drawn using the bright color variants.
|
|
|
|
draw_bold_text_with_bright_colors: true
|
|
|
|
|
2016-10-15 18:56:27 -04:00
|
|
|
# Colors (Tomorrow Night Bright)
|
2016-07-01 00:26:26 -04:00
|
|
|
colors:
|
|
|
|
# Default colors
|
2016-10-15 18:56:27 -04:00
|
|
|
primary:
|
|
|
|
background: '0x000000'
|
|
|
|
foreground: '0xeaeaea'
|
2017-02-10 12:15:36 -05:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Bright and dim foreground colors
|
Merge master into scrollback
* Allow disabling DPI scaling
This makes it possible to disable DPI scaling completely, instead the
the display pixel ration will always be fixed to 1.0.
By default nothing has changed and DPI is still enabled, this just seems
like a better way than running `WINIT_HIDPI_FACTOR=1.0 alacritty` every
time the user wants to start alacritty.
It would be possible to allow specifying any DPR, however I've decided
against this since I'd assume it's a very rare usecase. It's also still
possible to make use of `WINIT_HIDPI_FACTOR` to do this on X11.
Currently this is not updated at runtime using the live config update,
there is not really much of a technical limitation why this woudn't be
possible, however a solution for that issue should be first added in
jwilm/alacritty#1346, once a system is established for changing DPI at
runtime, porting that functionality to this PR should be simple.
* Add working --class and --title CLI parameters
* Reduce Increase-/DecreaseFontSize step to 0.5
Until now the Increase-/DecreaseFontSize keybinds hand a step size of 1.0. Since the font size however is multiplied by two to allow more granular font size control, this lead to the bindings skipping one font size (incrementing/decrementing by +-2).
To fix this the step size of the Increase-/DecreaseFontSize bindings has been reduced to the minimum step size that exists with the current font configuration (0.5). This should allow users to increment and decrement the font size by a single point instead of two.
This also adds a few tests to make sure the methods for increasing/decreasing/resetting font size work properly.
* Add Copy/Cut/Paste keys
This just adds support for the Copy/Cut/Paste keys and sets up
Copy/Paste as alternative defaults for Ctrl+Shift+C/V.
* Move to cargo clippy
Using clippy as a library has been deprecated, instead the `cargo
clippy` command should be used instead. To comply with this change
clippy has been removed from the `Cargo.toml` and is now installed with
cargo when building in CI.
This has also lead to a few new clippy issues to show up, this includes
everything in the `font` subdirectory. This has been fixed and `font`
should now be covered by clippy CI too.
This also upgrades all dependencies, as a result this fixes #1341 and
this fixes #1344.
* Override dynamic_title when --title is specified
* Change green implementation to use the macro
* Ignore mouse input if window is unfocused
* Make compilation of binary a phony target
* Add opensuse zypper install method to readme
* Fix clippy issues
* Update manpage to document all CLI options
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.
* Remove unnecessary clippy lint annotations
We moved to "cargo clippy" in 5ba34d4f9766a55a06ed5e3e44cc384af1b09f65 and
removing the clippy lint annotations in `src/lib.rs` does not cause any additional warnings.
This also changes `cargo clippy` to use the flags required for checking integration tests.
* Enable clippy in font/copypasta crates
Enabled clippy in the sub-crates font and copypasta. All issues
that were discovered by this change have also been fixed.
* Remove outdated comment about NixOS
* Replace debug asserts with static_assertions
To check that transmutes will work correctly without having to rely on
error-prone runtime checking, the `static_assertions` crate has been
introduced. This allows comparing the size of types at compile time,
preventing potentially silent breakage.
This fixes #1417.
* Add `cargo deb` build instructions
Updated the `Cargo.toml` file and added a `package.metadata.deb`
subsection to define how to build a debian "deb" install file using
`cargo deb`. This will allow debian/ubuntu users to install `alacritty`
using their system's package manager. It also will make it easier to
provide pre-built binaries for those systems.
Also fixed a stray debug line in the bash autocomplete script that was
writting to a tempfile.
* Add config for unfocused window cursor change
* Add support for cursor shape escape sequence
* Add bright foreground color option
It was requested in jwilm/alacritty#825 that it should be possible to
add an optional bright foreground color.
This is now added to the primary colors structure and allows the user to
set a foreground color for bold normal text. This has no effect unless
the draw_bold_text_with_bright_colors option is also enabled.
If the color is not specified, the bright foreground color will fall
back to the normal foreground color.
This fixes #825.
* Fix clone URL in deb install instructions
* Fix 'cargo-deb' desktop file name
* Remove redundant dependency from deb build
* Switch from deprecated `std::env::home_dir` to `dirs::home_dir`
* Allow specifying modifiers for mouse bindings
* Send newline with NumpadEnter
* Add support for LCD-V pixel mode
* Add binding action for hiding the window
* Switch to rustup clippy component
* Add optional dim foreground color
Add optional color for the dim foreground (`\e[2m;`)
Defaults to 2/3 of the foreground color. (same as other colors).
If a bright color is dimmed, it's displayed as the normal color. The
exception for this is when the bright foreground is dimmed when no
bright foreground color is set. In that case it's treated as a normal
foreground color and dimmed to DimForeground.
To minimize the surprise for the user, the bright and dim colors have
been completely removed from the default configuration file.
Some documentation has also been added to make it clear to users what
these options can be used for.
This fixes #1448.
* Fix clippy lints and run font tests on travis
This fixes some existing clippy issues and runs the `font` tests through travis.
Testing of copypasta crate was omitted due to problens when running on headless travis-ci environment (x11 clipboard would fail).
* Ignore errors when logger can't write to output
The (e)print macro will panic when there is no output available to
write to, however in our scenario where we only log user errors to
stderr, the better choice would be to ignore when writing to stdout or
stderr is not possible.
This changes the (e)print macro to make use of `write` and ignore
any potential errors.
Since (e)println rely on (e)print, this also solves potential failuers
when calling (e)println.
With this change implemented, all of logging, (e)println and (e)print
should never fail even if the stdout/stderr is not available.
2018-07-28 19:10:13 -04:00
|
|
|
#
|
|
|
|
# The dimmed foreground color is calculated automatically if it is not present.
|
|
|
|
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
|
|
|
|
# is `false`, the normal foreground color will be used.
|
2018-09-21 22:46:41 -04:00
|
|
|
#dim_foreground: '0x9a9a9a'
|
|
|
|
#bright_foreground: '0xffffff'
|
Merge master into scrollback
* Allow disabling DPI scaling
This makes it possible to disable DPI scaling completely, instead the
the display pixel ration will always be fixed to 1.0.
By default nothing has changed and DPI is still enabled, this just seems
like a better way than running `WINIT_HIDPI_FACTOR=1.0 alacritty` every
time the user wants to start alacritty.
It would be possible to allow specifying any DPR, however I've decided
against this since I'd assume it's a very rare usecase. It's also still
possible to make use of `WINIT_HIDPI_FACTOR` to do this on X11.
Currently this is not updated at runtime using the live config update,
there is not really much of a technical limitation why this woudn't be
possible, however a solution for that issue should be first added in
jwilm/alacritty#1346, once a system is established for changing DPI at
runtime, porting that functionality to this PR should be simple.
* Add working --class and --title CLI parameters
* Reduce Increase-/DecreaseFontSize step to 0.5
Until now the Increase-/DecreaseFontSize keybinds hand a step size of 1.0. Since the font size however is multiplied by two to allow more granular font size control, this lead to the bindings skipping one font size (incrementing/decrementing by +-2).
To fix this the step size of the Increase-/DecreaseFontSize bindings has been reduced to the minimum step size that exists with the current font configuration (0.5). This should allow users to increment and decrement the font size by a single point instead of two.
This also adds a few tests to make sure the methods for increasing/decreasing/resetting font size work properly.
* Add Copy/Cut/Paste keys
This just adds support for the Copy/Cut/Paste keys and sets up
Copy/Paste as alternative defaults for Ctrl+Shift+C/V.
* Move to cargo clippy
Using clippy as a library has been deprecated, instead the `cargo
clippy` command should be used instead. To comply with this change
clippy has been removed from the `Cargo.toml` and is now installed with
cargo when building in CI.
This has also lead to a few new clippy issues to show up, this includes
everything in the `font` subdirectory. This has been fixed and `font`
should now be covered by clippy CI too.
This also upgrades all dependencies, as a result this fixes #1341 and
this fixes #1344.
* Override dynamic_title when --title is specified
* Change green implementation to use the macro
* Ignore mouse input if window is unfocused
* Make compilation of binary a phony target
* Add opensuse zypper install method to readme
* Fix clippy issues
* Update manpage to document all CLI options
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.
* Remove unnecessary clippy lint annotations
We moved to "cargo clippy" in 5ba34d4f9766a55a06ed5e3e44cc384af1b09f65 and
removing the clippy lint annotations in `src/lib.rs` does not cause any additional warnings.
This also changes `cargo clippy` to use the flags required for checking integration tests.
* Enable clippy in font/copypasta crates
Enabled clippy in the sub-crates font and copypasta. All issues
that were discovered by this change have also been fixed.
* Remove outdated comment about NixOS
* Replace debug asserts with static_assertions
To check that transmutes will work correctly without having to rely on
error-prone runtime checking, the `static_assertions` crate has been
introduced. This allows comparing the size of types at compile time,
preventing potentially silent breakage.
This fixes #1417.
* Add `cargo deb` build instructions
Updated the `Cargo.toml` file and added a `package.metadata.deb`
subsection to define how to build a debian "deb" install file using
`cargo deb`. This will allow debian/ubuntu users to install `alacritty`
using their system's package manager. It also will make it easier to
provide pre-built binaries for those systems.
Also fixed a stray debug line in the bash autocomplete script that was
writting to a tempfile.
* Add config for unfocused window cursor change
* Add support for cursor shape escape sequence
* Add bright foreground color option
It was requested in jwilm/alacritty#825 that it should be possible to
add an optional bright foreground color.
This is now added to the primary colors structure and allows the user to
set a foreground color for bold normal text. This has no effect unless
the draw_bold_text_with_bright_colors option is also enabled.
If the color is not specified, the bright foreground color will fall
back to the normal foreground color.
This fixes #825.
* Fix clone URL in deb install instructions
* Fix 'cargo-deb' desktop file name
* Remove redundant dependency from deb build
* Switch from deprecated `std::env::home_dir` to `dirs::home_dir`
* Allow specifying modifiers for mouse bindings
* Send newline with NumpadEnter
* Add support for LCD-V pixel mode
* Add binding action for hiding the window
* Switch to rustup clippy component
* Add optional dim foreground color
Add optional color for the dim foreground (`\e[2m;`)
Defaults to 2/3 of the foreground color. (same as other colors).
If a bright color is dimmed, it's displayed as the normal color. The
exception for this is when the bright foreground is dimmed when no
bright foreground color is set. In that case it's treated as a normal
foreground color and dimmed to DimForeground.
To minimize the surprise for the user, the bright and dim colors have
been completely removed from the default configuration file.
Some documentation has also been added to make it clear to users what
these options can be used for.
This fixes #1448.
* Fix clippy lints and run font tests on travis
This fixes some existing clippy issues and runs the `font` tests through travis.
Testing of copypasta crate was omitted due to problens when running on headless travis-ci environment (x11 clipboard would fail).
* Ignore errors when logger can't write to output
The (e)print macro will panic when there is no output available to
write to, however in our scenario where we only log user errors to
stderr, the better choice would be to ignore when writing to stdout or
stderr is not possible.
This changes the (e)print macro to make use of `write` and ignore
any potential errors.
Since (e)println rely on (e)print, this also solves potential failuers
when calling (e)println.
With this change implemented, all of logging, (e)println and (e)print
should never fail even if the stdout/stderr is not available.
2018-07-28 19:10:13 -04:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Cursor colors
|
|
|
|
#
|
2018-11-01 13:23:49 -04:00
|
|
|
# Colors which should be used to draw the terminal cursor. If these are unset,
|
|
|
|
# the cursor color will be the inverse of the cell color.
|
|
|
|
#cursor:
|
|
|
|
# text: '0x000000'
|
|
|
|
# cursor: '0xffffff'
|
2019-04-23 15:05:47 -04:00
|
|
|
|
2019-03-12 19:11:32 -04:00
|
|
|
# Selection colors
|
|
|
|
#
|
2019-04-23 15:05:47 -04:00
|
|
|
# Colors which should be used to draw the selection area. If selection
|
|
|
|
# background is unset, selection color will be the inverse of the cell colors.
|
2019-03-12 19:11:32 -04:00
|
|
|
# If only text is unset the cell text color will remain the same.
|
|
|
|
#selection:
|
|
|
|
# text: '0xeaeaea'
|
|
|
|
# background: '0x404040'
|
2016-07-01 00:26:26 -04:00
|
|
|
|
|
|
|
# Normal colors
|
|
|
|
normal:
|
2016-10-15 18:56:27 -04:00
|
|
|
black: '0x000000'
|
|
|
|
red: '0xd54e53'
|
|
|
|
green: '0xb9ca4a'
|
|
|
|
yellow: '0xe6c547'
|
|
|
|
blue: '0x7aa6da'
|
|
|
|
magenta: '0xc397d8'
|
|
|
|
cyan: '0x70c0ba'
|
2019-01-17 04:17:26 -05:00
|
|
|
white: '0xeaeaea'
|
2016-07-01 00:26:26 -04:00
|
|
|
|
|
|
|
# Bright colors
|
|
|
|
bright:
|
2016-10-15 18:56:27 -04:00
|
|
|
black: '0x666666'
|
|
|
|
red: '0xff3334'
|
|
|
|
green: '0x9ec400'
|
|
|
|
yellow: '0xe7c547'
|
|
|
|
blue: '0x7aa6da'
|
|
|
|
magenta: '0xb77ee0'
|
|
|
|
cyan: '0x54ced6'
|
2017-05-27 23:02:01 -04:00
|
|
|
white: '0xffffff'
|
2016-07-01 00:26:26 -04:00
|
|
|
|
2018-09-21 22:46:41 -04:00
|
|
|
# Dim colors
|
|
|
|
#
|
|
|
|
# If the dim colors are not set, they will be calculated automatically based
|
|
|
|
# on the `normal` colors.
|
2019-01-17 04:17:26 -05:00
|
|
|
#dim:
|
|
|
|
# black: '0x000000'
|
|
|
|
# red: '0x8c3336'
|
|
|
|
# green: '0x7a8530'
|
|
|
|
# yellow: '0x97822e'
|
|
|
|
# blue: '0x506d8f'
|
|
|
|
# magenta: '0x80638e'
|
|
|
|
# cyan: '0x497e7a'
|
|
|
|
# white: '0x9a9a9a'
|
2017-06-23 13:01:53 -04:00
|
|
|
|
2018-09-23 19:05:15 -04:00
|
|
|
# Indexed Colors
|
|
|
|
#
|
|
|
|
# The indexed colors include all colors from 16 to 256.
|
|
|
|
# When these are not set, they're filled with sensible defaults.
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# `- { index: 16, color: '0xff00ff' }`
|
|
|
|
#
|
|
|
|
indexed_colors: []
|
2018-09-23 19:05:15 -04:00
|
|
|
|
2017-02-03 18:34:52 -05:00
|
|
|
# Visual Bell
|
|
|
|
#
|
|
|
|
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
|
|
|
|
# rung, the terminal background will be set to white and transition back to the
|
|
|
|
# default background color. You can control the rate of this transition by
|
|
|
|
# setting the `duration` property (represented in milliseconds). You can also
|
|
|
|
# configure the transition function by setting the `animation` property.
|
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Values for `animation`:
|
|
|
|
# - Ease
|
|
|
|
# - EaseOut
|
|
|
|
# - EaseOutSine
|
|
|
|
# - EaseOutQuad
|
|
|
|
# - EaseOutCubic
|
|
|
|
# - EaseOutQuart
|
|
|
|
# - EaseOutQuint
|
|
|
|
# - EaseOutExpo
|
|
|
|
# - EaseOutCirc
|
|
|
|
# - Linear
|
2017-02-03 18:34:52 -05:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Specifying a `duration` of `0` will disable the visual bell.
|
2017-02-10 12:15:36 -05:00
|
|
|
visual_bell:
|
|
|
|
animation: EaseOutExpo
|
2017-02-11 23:42:58 -05:00
|
|
|
duration: 0
|
2018-12-17 14:06:07 -05:00
|
|
|
color: '0xffffff'
|
2017-02-03 18:34:52 -05:00
|
|
|
|
2017-08-20 12:55:45 -04:00
|
|
|
# Background opacity
|
2018-10-03 07:29:37 -04:00
|
|
|
#
|
|
|
|
# Window opacity as a floating point number from `0.0` to `1.0`.
|
|
|
|
# The value `0.0` is completely transparent and `1.0` is opaque.
|
2017-08-20 12:55:45 -04:00
|
|
|
background_opacity: 1.0
|
|
|
|
|
2017-10-20 10:59:28 -04:00
|
|
|
# Mouse bindings
|
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Available fields:
|
|
|
|
# - mouse
|
|
|
|
# - action
|
|
|
|
# - mods (optional)
|
2017-10-20 10:59:28 -04:00
|
|
|
#
|
|
|
|
# Values for `mouse`:
|
2018-09-21 22:46:41 -04:00
|
|
|
# - Middle
|
|
|
|
# - Left
|
|
|
|
# - Right
|
|
|
|
# - Numeric identifier such as `5`
|
2017-10-20 10:59:28 -04:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# All available `mods` and `action` values are documented in the key binding
|
|
|
|
# section.
|
2017-10-20 10:59:28 -04:00
|
|
|
mouse_bindings:
|
|
|
|
- { mouse: Middle, action: PasteSelection }
|
|
|
|
|
|
|
|
mouse:
|
2017-12-29 12:37:46 -05:00
|
|
|
# Click settings
|
|
|
|
#
|
|
|
|
# The `double_click` and `triple_click` settings control the time
|
|
|
|
# alacritty should wait for accepting multiple clicks as one double
|
|
|
|
# or triple click.
|
2017-10-20 10:59:28 -04:00
|
|
|
double_click: { threshold: 300 }
|
|
|
|
triple_click: { threshold: 300 }
|
2017-12-29 12:37:46 -05:00
|
|
|
|
2018-11-01 13:23:49 -04:00
|
|
|
# If this is `true`, the cursor is temporarily hidden when typing.
|
|
|
|
hide_when_typing: false
|
|
|
|
|
2018-10-22 15:39:26 -04:00
|
|
|
url:
|
|
|
|
# URL launcher
|
|
|
|
#
|
|
|
|
# This program is executed when clicking on a text which is recognized as a URL.
|
|
|
|
# The URL is always added to the command as the last parameter.
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
2019-02-03 11:44:39 -05:00
|
|
|
# When set to `None`, URL launching will be disabled completely.
|
|
|
|
#
|
2019-01-17 04:17:26 -05:00
|
|
|
# Default:
|
|
|
|
# - (macOS) open
|
|
|
|
# - (Linux) xdg-open
|
|
|
|
# - (Windows) explorer
|
2019-04-09 17:17:22 -04:00
|
|
|
#launcher:
|
|
|
|
# program: xdg-open
|
|
|
|
# args: []
|
2018-10-22 15:39:26 -04:00
|
|
|
|
|
|
|
# URL modifiers
|
|
|
|
#
|
|
|
|
# These are the modifiers that need to be held down for opening URLs when clicking
|
|
|
|
# on them. The available modifiers are documented in the key binding section.
|
2019-01-17 04:17:26 -05:00
|
|
|
modifiers: None
|
2018-10-22 15:39:26 -04:00
|
|
|
|
2017-10-20 10:59:28 -04:00
|
|
|
selection:
|
|
|
|
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
|
|
|
|
|
2019-01-17 04:17:26 -05:00
|
|
|
# When set to `true`, selected text will be copied to the primary clipboard.
|
2018-09-24 08:12:45 -04:00
|
|
|
save_to_clipboard: false
|
|
|
|
|
2019-01-17 04:17:26 -05:00
|
|
|
# Allow terminal applications to change Alacritty's window title.
|
2017-12-24 13:24:28 -05:00
|
|
|
dynamic_title: true
|
|
|
|
|
2018-11-01 13:23:49 -04:00
|
|
|
cursor:
|
|
|
|
# Cursor style
|
|
|
|
#
|
2019-01-17 04:17:26 -05:00
|
|
|
# Values for `style`:
|
2018-11-01 13:23:49 -04:00
|
|
|
# - ▇ Block
|
|
|
|
# - _ Underline
|
|
|
|
# - | Beam
|
|
|
|
style: Block
|
|
|
|
|
|
|
|
# If this is `true`, the cursor will be rendered as a hollow box when the
|
|
|
|
# window is not focused.
|
|
|
|
unfocused_hollow: true
|
Merge master into scrollback
* Allow disabling DPI scaling
This makes it possible to disable DPI scaling completely, instead the
the display pixel ration will always be fixed to 1.0.
By default nothing has changed and DPI is still enabled, this just seems
like a better way than running `WINIT_HIDPI_FACTOR=1.0 alacritty` every
time the user wants to start alacritty.
It would be possible to allow specifying any DPR, however I've decided
against this since I'd assume it's a very rare usecase. It's also still
possible to make use of `WINIT_HIDPI_FACTOR` to do this on X11.
Currently this is not updated at runtime using the live config update,
there is not really much of a technical limitation why this woudn't be
possible, however a solution for that issue should be first added in
jwilm/alacritty#1346, once a system is established for changing DPI at
runtime, porting that functionality to this PR should be simple.
* Add working --class and --title CLI parameters
* Reduce Increase-/DecreaseFontSize step to 0.5
Until now the Increase-/DecreaseFontSize keybinds hand a step size of 1.0. Since the font size however is multiplied by two to allow more granular font size control, this lead to the bindings skipping one font size (incrementing/decrementing by +-2).
To fix this the step size of the Increase-/DecreaseFontSize bindings has been reduced to the minimum step size that exists with the current font configuration (0.5). This should allow users to increment and decrement the font size by a single point instead of two.
This also adds a few tests to make sure the methods for increasing/decreasing/resetting font size work properly.
* Add Copy/Cut/Paste keys
This just adds support for the Copy/Cut/Paste keys and sets up
Copy/Paste as alternative defaults for Ctrl+Shift+C/V.
* Move to cargo clippy
Using clippy as a library has been deprecated, instead the `cargo
clippy` command should be used instead. To comply with this change
clippy has been removed from the `Cargo.toml` and is now installed with
cargo when building in CI.
This has also lead to a few new clippy issues to show up, this includes
everything in the `font` subdirectory. This has been fixed and `font`
should now be covered by clippy CI too.
This also upgrades all dependencies, as a result this fixes #1341 and
this fixes #1344.
* Override dynamic_title when --title is specified
* Change green implementation to use the macro
* Ignore mouse input if window is unfocused
* Make compilation of binary a phony target
* Add opensuse zypper install method to readme
* Fix clippy issues
* Update manpage to document all CLI options
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.
* Remove unnecessary clippy lint annotations
We moved to "cargo clippy" in 5ba34d4f9766a55a06ed5e3e44cc384af1b09f65 and
removing the clippy lint annotations in `src/lib.rs` does not cause any additional warnings.
This also changes `cargo clippy` to use the flags required for checking integration tests.
* Enable clippy in font/copypasta crates
Enabled clippy in the sub-crates font and copypasta. All issues
that were discovered by this change have also been fixed.
* Remove outdated comment about NixOS
* Replace debug asserts with static_assertions
To check that transmutes will work correctly without having to rely on
error-prone runtime checking, the `static_assertions` crate has been
introduced. This allows comparing the size of types at compile time,
preventing potentially silent breakage.
This fixes #1417.
* Add `cargo deb` build instructions
Updated the `Cargo.toml` file and added a `package.metadata.deb`
subsection to define how to build a debian "deb" install file using
`cargo deb`. This will allow debian/ubuntu users to install `alacritty`
using their system's package manager. It also will make it easier to
provide pre-built binaries for those systems.
Also fixed a stray debug line in the bash autocomplete script that was
writting to a tempfile.
* Add config for unfocused window cursor change
* Add support for cursor shape escape sequence
* Add bright foreground color option
It was requested in jwilm/alacritty#825 that it should be possible to
add an optional bright foreground color.
This is now added to the primary colors structure and allows the user to
set a foreground color for bold normal text. This has no effect unless
the draw_bold_text_with_bright_colors option is also enabled.
If the color is not specified, the bright foreground color will fall
back to the normal foreground color.
This fixes #825.
* Fix clone URL in deb install instructions
* Fix 'cargo-deb' desktop file name
* Remove redundant dependency from deb build
* Switch from deprecated `std::env::home_dir` to `dirs::home_dir`
* Allow specifying modifiers for mouse bindings
* Send newline with NumpadEnter
* Add support for LCD-V pixel mode
* Add binding action for hiding the window
* Switch to rustup clippy component
* Add optional dim foreground color
Add optional color for the dim foreground (`\e[2m;`)
Defaults to 2/3 of the foreground color. (same as other colors).
If a bright color is dimmed, it's displayed as the normal color. The
exception for this is when the bright foreground is dimmed when no
bright foreground color is set. In that case it's treated as a normal
foreground color and dimmed to DimForeground.
To minimize the surprise for the user, the bright and dim colors have
been completely removed from the default configuration file.
Some documentation has also been added to make it clear to users what
these options can be used for.
This fixes #1448.
* Fix clippy lints and run font tests on travis
This fixes some existing clippy issues and runs the `font` tests through travis.
Testing of copypasta crate was omitted due to problens when running on headless travis-ci environment (x11 clipboard would fail).
* Ignore errors when logger can't write to output
The (e)print macro will panic when there is no output available to
write to, however in our scenario where we only log user errors to
stderr, the better choice would be to ignore when writing to stdout or
stderr is not possible.
This changes the (e)print macro to make use of `write` and ignore
any potential errors.
Since (e)println rely on (e)print, this also solves potential failuers
when calling (e)println.
With this change implemented, all of logging, (e)println and (e)print
should never fail even if the stdout/stderr is not available.
2018-07-28 19:10:13 -04:00
|
|
|
|
2017-10-20 10:59:28 -04:00
|
|
|
# Live config reload (changes require restart)
|
|
|
|
live_config_reload: true
|
|
|
|
|
|
|
|
# Shell
|
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
|
|
|
|
# Entries in `shell.args` are passed unmodified as arguments to the shell.
|
2019-01-17 04:17:26 -05:00
|
|
|
#
|
|
|
|
# Default:
|
|
|
|
# - (Linux/macOS) /bin/bash --login
|
|
|
|
# - (Windows) powershell
|
2018-09-21 22:46:41 -04:00
|
|
|
#shell:
|
|
|
|
# program: /bin/bash
|
|
|
|
# args:
|
|
|
|
# - --login
|
2017-10-20 10:59:28 -04:00
|
|
|
|
2019-01-17 04:17:26 -05:00
|
|
|
# Windows 10 ConPTY backend (Windows only)
|
|
|
|
#
|
|
|
|
# This will enable better color support and may resolve other issues,
|
|
|
|
# however this API and its implementation is still young and so is
|
|
|
|
# disabled by default, as stability may not be as good as the winpty
|
|
|
|
# backend.
|
|
|
|
#
|
|
|
|
# Alacritty will fall back to the WinPTY automatically if the ConPTY
|
|
|
|
# backend cannot be initialized.
|
|
|
|
enable_experimental_conpty_backend: false
|
|
|
|
|
2019-01-17 15:42:12 -05:00
|
|
|
# Send ESC (\x1b) before characters when alt is pressed.
|
|
|
|
alt_send_esc: true
|
|
|
|
|
2016-11-15 12:38:50 -05:00
|
|
|
# Key bindings
|
|
|
|
#
|
2019-01-17 04:17:26 -05:00
|
|
|
# Key bindings are specified as a list of objects. Each binding will specify a
|
|
|
|
# key and modifiers required to trigger it, terminal modes where the binding is
|
|
|
|
# applicable, and what should be done when the key binding fires. It can either
|
|
|
|
# send a byte sequence to the running application (`chars`), execute a
|
|
|
|
# predefined action (`action`) or fork and execute a specified command plus
|
2018-09-21 22:46:41 -04:00
|
|
|
# arguments (`command`).
|
|
|
|
#
|
2019-01-17 04:17:26 -05:00
|
|
|
# Bindings are always filled by default, but will be replaced when a new binding
|
|
|
|
# with the same triggers is defined. To unset a default binding, it can be
|
|
|
|
# mapped to the `None` action.
|
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Example:
|
2019-01-05 15:47:12 -05:00
|
|
|
# `- { key: V, mods: Control|Shift, action: Paste }`
|
2016-11-15 12:38:50 -05:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Available fields:
|
|
|
|
# - key
|
|
|
|
# - mods (optional)
|
|
|
|
# - chars | action | command (exactly one required)
|
|
|
|
# - mode (optional)
|
2018-01-10 13:36:34 -05:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Values for `key`:
|
|
|
|
# - `A` -> `Z`
|
|
|
|
# - `F1` -> `F12`
|
|
|
|
# - `Key1` -> `Key0`
|
2016-11-15 12:38:50 -05:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# A full list with available key codes can be found here:
|
|
|
|
# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
|
2016-11-15 12:38:50 -05:00
|
|
|
#
|
2018-10-16 14:46:26 -04:00
|
|
|
# Instead of using the name of the keys, the `key` field also supports using
|
|
|
|
# the scancode of the desired key. Scancodes have to be specified as a
|
|
|
|
# decimal number.
|
|
|
|
# This command will allow you to display the hex scancodes for certain keys:
|
|
|
|
# `showkey --scancodes`
|
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Values for `mods`:
|
2019-01-17 04:17:26 -05:00
|
|
|
# - Command
|
2018-09-21 22:46:41 -04:00
|
|
|
# - Control
|
2019-01-17 04:17:26 -05:00
|
|
|
# - Super
|
2018-09-21 22:46:41 -04:00
|
|
|
# - Shift
|
|
|
|
# - Alt
|
|
|
|
#
|
|
|
|
# Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
|
|
|
|
# Whitespace and capitalization is relevant and must match the example.
|
|
|
|
#
|
|
|
|
# Values for `chars`:
|
|
|
|
# The `chars` field writes the specified string to the terminal. This makes
|
|
|
|
# it possible to pass escape sequences.
|
|
|
|
# To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
|
|
|
|
# the command `showkey -a` outside of tmux.
|
2018-09-24 15:06:12 -04:00
|
|
|
# Note that applications use terminfo to map escape sequences back to
|
|
|
|
# keys. It is therefore required to update the terminfo when
|
|
|
|
# changing an escape sequence.
|
2018-09-21 22:46:41 -04:00
|
|
|
#
|
|
|
|
# Values for `action`:
|
|
|
|
# - Paste
|
|
|
|
# - PasteSelection
|
|
|
|
# - Copy
|
|
|
|
# - IncreaseFontSize
|
|
|
|
# - DecreaseFontSize
|
|
|
|
# - ResetFontSize
|
|
|
|
# - ScrollPageUp
|
|
|
|
# - ScrollPageDown
|
2019-04-08 15:50:06 -04:00
|
|
|
# - ScrollLineUp
|
|
|
|
# - ScrollLineDown
|
2018-09-21 22:46:41 -04:00
|
|
|
# - ScrollToTop
|
|
|
|
# - ScrollToBottom
|
|
|
|
# - ClearHistory
|
|
|
|
# - Hide
|
|
|
|
# - Quit
|
2018-11-19 03:33:48 -05:00
|
|
|
# - ClearLogNotice
|
2019-01-05 15:47:12 -05:00
|
|
|
# - SpawnNewInstance
|
2019-04-23 15:05:47 -04:00
|
|
|
# - ToggleFullscreen
|
2019-01-17 04:17:26 -05:00
|
|
|
# - None
|
2016-11-15 12:38:50 -05:00
|
|
|
#
|
2019-04-23 15:05:47 -04:00
|
|
|
# Values for `action` (macOS only):
|
|
|
|
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
|
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Values for `command`:
|
|
|
|
# The `command` field must be a map containing a `program` string and
|
|
|
|
# an `args` array of command line parameter strings.
|
2016-11-15 12:38:50 -05:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Example:
|
|
|
|
# `command: { program: "alacritty", args: ["-e", "vttest"] }`
|
2017-02-28 15:27:09 -05:00
|
|
|
#
|
2018-09-21 22:46:41 -04:00
|
|
|
# Values for `mode`:
|
|
|
|
# - ~AppCursor
|
|
|
|
# - AppCursor
|
|
|
|
# - ~AppKeypad
|
|
|
|
# - AppKeypad
|
2016-11-15 12:38:50 -05:00
|
|
|
key_bindings:
|
2019-01-17 04:17:26 -05:00
|
|
|
# (Windows/Linux only)
|
2019-02-07 20:46:56 -05:00
|
|
|
#- { key: V, mods: Control|Shift, action: Paste }
|
|
|
|
#- { key: C, mods: Control|Shift, action: Copy }
|
|
|
|
#- { key: Insert, mods: Shift, action: PasteSelection }
|
|
|
|
#- { key: Key0, mods: Control, action: ResetFontSize }
|
|
|
|
#- { key: Equals, mods: Control, action: IncreaseFontSize }
|
2019-03-15 16:41:48 -04:00
|
|
|
#- { key: Add, mods: Control, action: IncreaseFontSize }
|
2019-02-07 20:46:56 -05:00
|
|
|
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
2019-03-15 16:41:48 -04:00
|
|
|
#- { key: Minus, mods: Control, action: DecreaseFontSize }
|
2019-01-17 04:17:26 -05:00
|
|
|
|
|
|
|
# (macOS only)
|
2019-02-07 20:46:56 -05:00
|
|
|
#- { key: Key0, mods: Command, action: ResetFontSize }
|
|
|
|
#- { key: Equals, mods: Command, action: IncreaseFontSize }
|
2019-03-15 16:41:48 -04:00
|
|
|
#- { key: Add, mods: Command, action: IncreaseFontSize }
|
2019-02-07 20:46:56 -05:00
|
|
|
#- { key: Minus, mods: Command, action: DecreaseFontSize }
|
|
|
|
#- { key: K, mods: Command, action: ClearHistory }
|
|
|
|
#- { key: K, mods: Command, chars: "\x0c" }
|
|
|
|
#- { key: V, mods: Command, action: Paste }
|
|
|
|
#- { key: C, mods: Command, action: Copy }
|
|
|
|
#- { key: H, mods: Command, action: Hide }
|
|
|
|
#- { key: Q, mods: Command, action: Quit }
|
|
|
|
#- { key: W, mods: Command, action: Quit }
|
|
|
|
|
|
|
|
- { key: Paste, action: Paste }
|
|
|
|
- { key: Copy, action: Copy }
|
|
|
|
- { key: L, mods: Control, action: ClearLogNotice }
|
|
|
|
- { key: L, mods: Control, chars: "\x0c" }
|
2019-03-02 13:57:07 -05:00
|
|
|
- { key: Home, mods: Alt, chars: "\x1b[1;3H" }
|
2019-02-07 20:46:56 -05:00
|
|
|
- { key: Home, chars: "\x1bOH", mode: AppCursor }
|
|
|
|
- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
|
2019-03-02 13:57:07 -05:00
|
|
|
- { key: End, mods: Alt, chars: "\x1b[1;3F" }
|
2019-02-07 20:46:56 -05:00
|
|
|
- { key: End, chars: "\x1bOF", mode: AppCursor }
|
|
|
|
- { key: End, chars: "\x1b[F", mode: ~AppCursor }
|
|
|
|
- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
|
|
|
|
- { key: PageUp, mods: Shift, chars: "\x1b[5;2~", mode: Alt }
|
|
|
|
- { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
|
2019-03-02 13:57:07 -05:00
|
|
|
- { key: PageUp, mods: Alt, chars: "\x1b[5;3~" }
|
2019-02-07 20:46:56 -05:00
|
|
|
- { key: PageUp, chars: "\x1b[5~" }
|
|
|
|
- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
|
|
|
|
- { key: PageDown, mods: Shift, chars: "\x1b[6;2~", mode: Alt }
|
|
|
|
- { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
|
2019-03-02 13:57:07 -05:00
|
|
|
- { key: PageDown, mods: Alt, chars: "\x1b[6;3~" }
|
2019-02-07 20:46:56 -05:00
|
|
|
- { key: PageDown, chars: "\x1b[6~" }
|
|
|
|
- { key: Tab, mods: Shift, chars: "\x1b[Z" }
|
|
|
|
- { key: Back, chars: "\x7f" }
|
|
|
|
- { key: Back, mods: Alt, chars: "\x1b\x7f" }
|
|
|
|
- { key: Insert, chars: "\x1b[2~" }
|
|
|
|
- { key: Delete, chars: "\x1b[3~" }
|
|
|
|
- { key: Left, mods: Shift, chars: "\x1b[1;2D" }
|
|
|
|
- { key: Left, mods: Control, chars: "\x1b[1;5D" }
|
|
|
|
- { key: Left, mods: Alt, chars: "\x1b[1;3D" }
|
|
|
|
- { key: Left, chars: "\x1b[D", mode: ~AppCursor }
|
|
|
|
- { key: Left, chars: "\x1bOD", mode: AppCursor }
|
|
|
|
- { key: Right, mods: Shift, chars: "\x1b[1;2C" }
|
|
|
|
- { key: Right, mods: Control, chars: "\x1b[1;5C" }
|
|
|
|
- { key: Right, mods: Alt, chars: "\x1b[1;3C" }
|
|
|
|
- { key: Right, chars: "\x1b[C", mode: ~AppCursor }
|
|
|
|
- { key: Right, chars: "\x1bOC", mode: AppCursor }
|
|
|
|
- { key: Up, mods: Shift, chars: "\x1b[1;2A" }
|
|
|
|
- { key: Up, mods: Control, chars: "\x1b[1;5A" }
|
|
|
|
- { key: Up, mods: Alt, chars: "\x1b[1;3A" }
|
|
|
|
- { key: Up, chars: "\x1b[A", mode: ~AppCursor }
|
|
|
|
- { key: Up, chars: "\x1bOA", mode: AppCursor }
|
|
|
|
- { key: Down, mods: Shift, chars: "\x1b[1;2B" }
|
|
|
|
- { key: Down, mods: Control, chars: "\x1b[1;5B" }
|
|
|
|
- { key: Down, mods: Alt, chars: "\x1b[1;3B" }
|
|
|
|
- { key: Down, chars: "\x1b[B", mode: ~AppCursor }
|
|
|
|
- { key: Down, chars: "\x1bOB", mode: AppCursor }
|
|
|
|
- { key: F1, chars: "\x1bOP" }
|
|
|
|
- { key: F2, chars: "\x1bOQ" }
|
|
|
|
- { key: F3, chars: "\x1bOR" }
|
|
|
|
- { key: F4, chars: "\x1bOS" }
|
|
|
|
- { key: F5, chars: "\x1b[15~" }
|
|
|
|
- { key: F6, chars: "\x1b[17~" }
|
|
|
|
- { key: F7, chars: "\x1b[18~" }
|
|
|
|
- { key: F8, chars: "\x1b[19~" }
|
|
|
|
- { key: F9, chars: "\x1b[20~" }
|
|
|
|
- { key: F10, chars: "\x1b[21~" }
|
|
|
|
- { key: F11, chars: "\x1b[23~" }
|
|
|
|
- { key: F12, chars: "\x1b[24~" }
|
|
|
|
- { key: F1, mods: Shift, chars: "\x1b[1;2P" }
|
|
|
|
- { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
|
|
|
|
- { key: F3, mods: Shift, chars: "\x1b[1;2R" }
|
|
|
|
- { key: F4, mods: Shift, chars: "\x1b[1;2S" }
|
|
|
|
- { key: F5, mods: Shift, chars: "\x1b[15;2~" }
|
|
|
|
- { key: F6, mods: Shift, chars: "\x1b[17;2~" }
|
|
|
|
- { key: F7, mods: Shift, chars: "\x1b[18;2~" }
|
|
|
|
- { key: F8, mods: Shift, chars: "\x1b[19;2~" }
|
|
|
|
- { key: F9, mods: Shift, chars: "\x1b[20;2~" }
|
|
|
|
- { key: F10, mods: Shift, chars: "\x1b[21;2~" }
|
|
|
|
- { key: F11, mods: Shift, chars: "\x1b[23;2~" }
|
|
|
|
- { key: F12, mods: Shift, chars: "\x1b[24;2~" }
|
|
|
|
- { key: F1, mods: Control, chars: "\x1b[1;5P" }
|
|
|
|
- { key: F2, mods: Control, chars: "\x1b[1;5Q" }
|
|
|
|
- { key: F3, mods: Control, chars: "\x1b[1;5R" }
|
|
|
|
- { key: F4, mods: Control, chars: "\x1b[1;5S" }
|
|
|
|
- { key: F5, mods: Control, chars: "\x1b[15;5~" }
|
|
|
|
- { key: F6, mods: Control, chars: "\x1b[17;5~" }
|
|
|
|
- { key: F7, mods: Control, chars: "\x1b[18;5~" }
|
|
|
|
- { key: F8, mods: Control, chars: "\x1b[19;5~" }
|
|
|
|
- { key: F9, mods: Control, chars: "\x1b[20;5~" }
|
|
|
|
- { key: F10, mods: Control, chars: "\x1b[21;5~" }
|
|
|
|
- { key: F11, mods: Control, chars: "\x1b[23;5~" }
|
|
|
|
- { key: F12, mods: Control, chars: "\x1b[24;5~" }
|
|
|
|
- { key: F1, mods: Alt, chars: "\x1b[1;6P" }
|
|
|
|
- { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
|
|
|
|
- { key: F3, mods: Alt, chars: "\x1b[1;6R" }
|
|
|
|
- { key: F4, mods: Alt, chars: "\x1b[1;6S" }
|
|
|
|
- { key: F5, mods: Alt, chars: "\x1b[15;6~" }
|
|
|
|
- { key: F6, mods: Alt, chars: "\x1b[17;6~" }
|
|
|
|
- { key: F7, mods: Alt, chars: "\x1b[18;6~" }
|
|
|
|
- { key: F8, mods: Alt, chars: "\x1b[19;6~" }
|
|
|
|
- { key: F9, mods: Alt, chars: "\x1b[20;6~" }
|
|
|
|
- { key: F10, mods: Alt, chars: "\x1b[21;6~" }
|
|
|
|
- { key: F11, mods: Alt, chars: "\x1b[23;6~" }
|
|
|
|
- { key: F12, mods: Alt, chars: "\x1b[24;6~" }
|
|
|
|
- { key: F1, mods: Super, chars: "\x1b[1;3P" }
|
|
|
|
- { key: F2, mods: Super, chars: "\x1b[1;3Q" }
|
|
|
|
- { key: F3, mods: Super, chars: "\x1b[1;3R" }
|
|
|
|
- { key: F4, mods: Super, chars: "\x1b[1;3S" }
|
|
|
|
- { key: F5, mods: Super, chars: "\x1b[15;3~" }
|
|
|
|
- { key: F6, mods: Super, chars: "\x1b[17;3~" }
|
|
|
|
- { key: F7, mods: Super, chars: "\x1b[18;3~" }
|
|
|
|
- { key: F8, mods: Super, chars: "\x1b[19;3~" }
|
|
|
|
- { key: F9, mods: Super, chars: "\x1b[20;3~" }
|
|
|
|
- { key: F10, mods: Super, chars: "\x1b[21;3~" }
|
|
|
|
- { key: F11, mods: Super, chars: "\x1b[23;3~" }
|
|
|
|
- { key: F12, mods: Super, chars: "\x1b[24;3~" }
|
|
|
|
- { key: NumpadEnter, chars: "\n" }
|