Advertisement
Ace4896

Alacritty Coloured Output Issue (alacritty.yml)

Nov 25th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 18.21 KB | None | 0 0
  1. # Configuration for Alacritty, the GPU enhanced terminal emulator.
  2.  
  3. # Any items in the `env` entry below will be added as
  4. # environment variables. Some entries may override variables
  5. # set by alacritty itself.
  6. #env:
  7.   # TERM variable
  8.   #
  9.   # This value is used to set the `$TERM` environment variable for
  10.   # each instance of Alacritty. If it is not present, alacritty will
  11.   # check the local terminfo database and use 'alacritty' if it is
  12.   # available, otherwise 'xterm-256color' is used.
  13.   #TERM: xterm-256color
  14.  
  15. window:
  16.  # Window dimensions (changes require restart)
  17.   #
  18.   # Specified in number of columns/lines, not pixels.
  19.   # If both are `0`, this setting is ignored.
  20.   dimensions:
  21.     columns: 120
  22.     lines: 36
  23.  
  24.   # Window padding (changes require restart)
  25.   #
  26.   # Blank space added around the window in pixels. This padding is scaled
  27.   # by DPI and the specified value is always added at both opposing sides.
  28.   padding:
  29.     x: 4
  30.     y: 4
  31.  
  32.   # Window decorations
  33.   #
  34.   # Values for `decorations`:
  35.   #     - full: Borders and title bar
  36.   #     - none: Neither borders nor title bar
  37.   decorations: full
  38.  
  39. scrolling:
  40.  # Maximum number of lines in the scrollback buffer.
  41.   # Specifying '0' will disable scrolling.
  42.   history: 10000
  43.  
  44.   # Number of lines the viewport will move for every line scrolled when
  45.   # scrollback is enabled (history > 0).
  46.   multiplier: 3
  47.  
  48.   # Faux Scrolling
  49.   #
  50.   # The `faux_multiplier` setting controls the number of lines the terminal
  51.   # should scroll when the alternate screen buffer is active. This is used
  52.   # to allow mouse scrolling for applications like `man`.
  53.   #
  54.   # Specifying `0` will disable faux scrolling.
  55.   faux_multiplier: 3
  56.  
  57.   # Scroll to the bottom when new text is written to the terminal.
  58.   auto_scroll: false
  59.  
  60. # Spaces per Tab (changes require restart)
  61. #
  62. # This setting defines the width of a tab in cells.
  63. #
  64. # Some applications, like Emacs, rely on knowing about the width of a tab.
  65. # To prevent unexpected behavior in these applications, it's also required to
  66. # change the `it` value in terminfo when altering this setting.
  67. tabspaces: 4
  68.  
  69. # Font configuration (changes require restart)
  70. font:
  71.  # Normal (roman) font face
  72.   normal:
  73.     family: Noto Mono
  74.     # The `style` can be specified to pick a specific face.
  75.     #style: Regular
  76.  
  77.   # Bold font face
  78.   bold:
  79.     family: Noto Mono
  80.     # The `style` can be specified to pick a specific face.
  81.     #style: Bold
  82.  
  83.   # Italic font face
  84.   italic:
  85.     family: Noto Mono
  86.     # The `style` can be specified to pick a specific face.
  87.     #style: Italic
  88.  
  89.   # Point size
  90.   size: 11.0
  91.  
  92.   # Offset is the extra space around each character. `offset.y` can be thought of
  93.   # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
  94.   offset:
  95.     x: 0
  96.     y: 0
  97.  
  98.   # Glyph offset determines the locations of the glyphs within their cells with
  99.   # the default being at the bottom. Increasing `x` moves the glyph to the right,
  100.   # increasing `y` moves the glyph upwards.
  101.   glyph_offset:
  102.     x: 0
  103.     y: 0
  104.  
  105. # Display the time it takes to redraw each frame.
  106. render_timer: false
  107.  
  108. ## Colors (Tomorrow Night Bright)
  109. #colors:
  110. #  # Default colors
  111. #  primary:
  112. #    background: '0x000000'
  113. #    foreground: '0xeaeaea'
  114. #
  115. #    # Bright and dim foreground colors
  116. #    #
  117. #    # The dimmed foreground color is calculated automatically if it is not present.
  118. #    # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
  119. #    # is `false`, the normal foreground color will be used.
  120. #    #dim_foreground: '0x9a9a9a'
  121. #    #bright_foreground: '0xffffff'
  122. #
  123. #  # Cursor colors
  124. #  #
  125. #  # Colors which should be used to draw the terminal cursor. If these are unset,
  126. #  # the cursor color will be the inverse of the cell color.
  127. #  #cursor:
  128. #  #  text: '0x000000'
  129. #  #  cursor: '0xffffff'
  130. #
  131. #  # Normal colors
  132. #  normal:
  133. #    black:   '0x000000'
  134. #    red:     '0xd54e53'
  135. #    green:   '0xb9ca4a'
  136. #    yellow:  '0xe6c547'
  137. #    blue:    '0x7aa6da'
  138. #    magenta: '0xc397d8'
  139. #    cyan:    '0x70c0ba'
  140. #    white:   '0xffffff'
  141. #
  142. #  # Bright colors
  143. #  bright:
  144. #    black:   '0x666666'
  145. #    red:     '0xff3334'
  146. #    green:   '0x9ec400'
  147. #    yellow:  '0xe7c547'
  148. #    blue:    '0x7aa6da'
  149. #    magenta: '0xb77ee0'
  150. #    cyan:    '0x54ced6'
  151. #    white:   '0xffffff'
  152. #
  153. #  # Dim colors
  154. #  #
  155. #  # If the dim colors are not set, they will be calculated automatically based
  156. #  # on the `normal` colors.
  157. #  dim:
  158. #    black:   '0x333333'
  159. #    red:     '0xf2777a'
  160. #    green:   '0x99cc99'
  161. #    yellow:  '0xffcc66'
  162. #    blue:    '0x6699cc'
  163. #    magenta: '0xcc99cc'
  164. #    cyan:    '0x66cccc'
  165. #    white:   '0xdddddd'
  166. #
  167. #  # Indexed Colors
  168. #  #
  169. #  # The indexed colors include all colors from 16 to 256.
  170. #  # When these are not set, they're filled with sensible defaults.
  171. #  #indexed_colors:
  172. #  #  - { index: 16, color: '0x000000' }
  173.  
  174. # Colors (Snazzy)
  175. colors:
  176.  # Default colors
  177.   primary:
  178.     background: '0x282a36'
  179.     foreground: '0xeff0eb'
  180.  
  181.   # Normal colors
  182.   normal:
  183.     black:  '0x282a36'
  184.     red:    '0xff5c57'
  185.     green:  '0x5af78e'
  186.     yellow: '0xf3f99d'
  187.     blue:   '0x57c7ff'
  188.     magenta: '0xff6ac1'
  189.     cyan:   '0x9aedfe'
  190.     white:  '0xf1f1f0'
  191.  
  192.   # Bright colors
  193.   bright:
  194.     black:  '0x686868'
  195.     red:    '0xff5c57'
  196.     green:  '0x5af78e'
  197.     yellow: '0xf3f99d'
  198.     blue:   '0x57c7ff'
  199.     magenta: '0xff6ac1'
  200.     cyan:   '0x9aedfe'
  201.     white:  '0xf1f1f0'
  202.  
  203. # Visual Bell
  204. #
  205. # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
  206. # rung, the terminal background will be set to white and transition back to the
  207. # default background color. You can control the rate of this transition by
  208. # setting the `duration` property (represented in milliseconds). You can also
  209. # configure the transition function by setting the `animation` property.
  210. #
  211. # Values for `animation`:
  212. #   - Ease
  213. #   - EaseOut
  214. #   - EaseOutSine
  215. #   - EaseOutQuad
  216. #   - EaseOutCubic
  217. #   - EaseOutQuart
  218. #   - EaseOutQuint
  219. #   - EaseOutExpo
  220. #   - EaseOutCirc
  221. #   - Linear
  222. #
  223. # Specifying a `duration` of `0` will disable the visual bell.
  224. visual_bell:
  225.   animation: EaseOutExpo
  226.   duration: 0
  227.  
  228. # Background opacity
  229. #
  230. # Window opacity as a floating point number from `0.0` to `1.0`.
  231. # The value `0.0` is completely transparent and `1.0` is opaque.
  232. background_opacity: 1.0
  233.  
  234. # Mouse bindings
  235. #
  236. # Available fields:
  237. #   - mouse
  238. #   - action
  239. #   - mods (optional)
  240. #
  241. # Values for `mouse`:
  242. #   - Middle
  243. #   - Left
  244. #   - Right
  245. #   - Numeric identifier such as `5`
  246. #
  247. # All available `mods` and `action` values are documented in the key binding
  248. # section.
  249. mouse_bindings:
  250.   - { mouse: Middle, action: PasteSelection }
  251.  
  252. mouse:
  253.  # Click settings
  254.   #
  255.   # The `double_click` and `triple_click` settings control the time
  256.   # alacritty should wait for accepting multiple clicks as one double
  257.   # or triple click.
  258.   double_click: { threshold: 300 }
  259.   triple_click: { threshold: 300 }
  260.  
  261.   # If this is `true`, the cursor is temporarily hidden when typing.
  262.   hide_when_typing: false
  263.  
  264.   url:
  265.    # URL launcher
  266.     #
  267.     # This program is executed when clicking on a text which is recognized as a URL.
  268.     # The URL is always added to the command as the last parameter.
  269.     launcher: explorer
  270.  
  271.     # URL modifiers
  272.     #
  273.     # These are the modifiers that need to be held down for opening URLs when clicking
  274.     # on them. The available modifiers are documented in the key binding section.
  275.     #modifiers: Control|Shift
  276.  
  277. selection:
  278.   semantic_escape_chars: ",│`|:\"' ()[]{}<>"
  279.  
  280. cursor:
  281.  # Cursor style
  282.  #
  283.  # Values for 'style':
  284.  #   - ▇ Block
  285.  #   - _ Underline
  286.  #   - | Beam
  287.  style: Beam
  288.  
  289.  # If this is `true`, the cursor will be rendered as a hollow box when the
  290.  # window is not focused.
  291.  unfocused_hollow: true
  292.  
  293. # Live config reload (changes require restart)
  294. live_config_reload: true
  295.  
  296. # Shell
  297. #
  298. # You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
  299. # Entries in `shell.args` are passed unmodified as arguments to the shell.
  300. #shell:
  301. #  program: cmd
  302. #  #args:
  303. #  #  - --login
  304.  
  305. shell:
  306.   #program: cmd
  307.   #program: powershell
  308.   program: bash
  309.  
  310. # Key bindings
  311. #
  312. # Key bindings are specified as a list of objects. Each binding will specify
  313. # a key and modifiers required to trigger it, terminal modes where the binding
  314. # is applicable, and what should be done when the key binding fires. It can
  315. # either send a byte sequnce to the running application (`chars`), execute
  316. # a predefined action (`action`) or fork and execute a specified command plus
  317. # arguments (`command`).
  318. #
  319. # Example:
  320. #   `- { key: V, mods: Command, action: Paste }`
  321. #
  322. # Available fields:
  323. #   - key
  324. #   - mods (optional)
  325. #   - chars | action | command (exactly one required)
  326. #   - mode (optional)
  327. #
  328. # Values for `key`:
  329. #   - `A` -> `Z`
  330. #   - `F1` -> `F12`
  331. #   - `Key1` -> `Key0`
  332. #
  333. #   A full list with available key codes can be found here:
  334. #   https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
  335. #
  336. #   Instead of using the name of the keys, the `key` field also supports using
  337. #   the scancode of the desired key. Scancodes have to be specified as a
  338. #   decimal number.
  339. #   This command will allow you to display the hex scancodes for certain keys:
  340. #     `showkey --scancodes`
  341. #
  342. # Values for `mods`:
  343. #   - Command
  344. #   - Control
  345. #   - Shift
  346. #   - Alt
  347. #
  348. #   Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
  349. #   Whitespace and capitalization is relevant and must match the example.
  350. #
  351. # Values for `chars`:
  352. #   The `chars` field writes the specified string to the terminal. This makes
  353. #   it possible to pass escape sequences.
  354. #   To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
  355. #   the command `showkey -a` outside of tmux.
  356. #   Note that applications use terminfo to map escape sequences back to
  357. #   keys. It is therefore required to update the terminfo when
  358. #   changing an escape sequence.
  359. #
  360. # Values for `action`:
  361. #   - Paste
  362. #   - PasteSelection
  363. #   - Copy
  364. #   - IncreaseFontSize
  365. #   - DecreaseFontSize
  366. #   - ResetFontSize
  367. #   - ScrollPageUp
  368. #   - ScrollPageDown
  369. #   - ScrollToTop
  370. #   - ScrollToBottom
  371. #   - ClearHistory
  372. #   - Hide
  373. #   - Quit
  374. #
  375. # Values for `command`:
  376. #   The `command` field must be a map containing a `program` string and
  377. #   an `args` array of command line parameter strings.
  378. #
  379. #   Example:
  380. #       `command: { program: "alacritty", args: ["-e", "vttest"] }`
  381. #
  382. # Values for `mode`:
  383. #   - ~AppCursor
  384. #   - AppCursor
  385. #   - ~AppKeypad
  386. #   - AppKeypad
  387. key_bindings:
  388.  - { key: V,        mods: Control|Shift,    action: Paste               }
  389.  - { key: C,        mods: Control|Shift,    action: Copy                }
  390.  - { key: Q,        mods: Command, action: Quit                         }
  391.  - { key: W,        mods: Command, action: Quit                         }
  392.  - { key: Insert,   mods: Shift,   action: PasteSelection               }
  393.  - { key: Key0,     mods: Control, action: ResetFontSize                }
  394.  - { key: Equals,   mods: Control, action: IncreaseFontSize             }
  395.  - { key: Subtract, mods: Control, action: DecreaseFontSize             }
  396.  - { key: Home,                    chars: "\x1bOH",   mode: AppCursor   }
  397.  - { key: Home,                    chars: "\x1b[H",   mode: ~AppCursor  }
  398.  - { key: End,                     chars: "\x1bOF",   mode: AppCursor   }
  399.  - { key: End,                     chars: "\x1b[F",   mode: ~AppCursor  }
  400.  - { key: PageUp,   mods: Shift,   chars: "\x1b[5;2~"                   }
  401.  - { key: PageUp,   mods: Control, chars: "\x1b[5;5~"                   }
  402.  - { key: PageUp,                  chars: "\x1b[5~"                     }
  403.  - { key: PageDown, mods: Shift,   chars: "\x1b[6;2~"                   }
  404.  - { key: PageDown, mods: Control, chars: "\x1b[6;5~"                   }
  405.  - { key: PageDown,                chars: "\x1b[6~"                     }
  406.  - { key: Tab,      mods: Shift,   chars: "\x1b[Z"                      }
  407.  - { key: Back,                    chars: "\x7f"                        }
  408.  - { key: Back,     mods: Alt,     chars: "\x1b\x7f"                    }
  409.  - { key: Insert,                  chars: "\x1b[2~"                     }
  410.  - { key: Delete,                  chars: "\x1b[3~"                     }
  411.  - { key: Left,     mods: Shift,   chars: "\x1b[1;2D"                   }
  412.  - { key: Left,     mods: Control, chars: "\x1b[1;5D"                   }
  413.  - { key: Left,     mods: Alt,     chars: "\x1b[1;3D"                   }
  414.  - { key: Left,                    chars: "\x1b[D",   mode: ~AppCursor  }
  415.  - { key: Left,                    chars: "\x1bOD",   mode: AppCursor   }
  416.  - { key: Right,    mods: Shift,   chars: "\x1b[1;2C"                   }
  417.  - { key: Right,    mods: Control, chars: "\x1b[1;5C"                   }
  418.  - { key: Right,    mods: Alt,     chars: "\x1b[1;3C"                   }
  419.  - { key: Right,                   chars: "\x1b[C",   mode: ~AppCursor  }
  420.  - { key: Right,                   chars: "\x1bOC",   mode: AppCursor   }
  421.  - { key: Up,       mods: Shift,   chars: "\x1b[1;2A"                   }
  422.  - { key: Up,       mods: Control, chars: "\x1b[1;5A"                   }
  423.  - { key: Up,       mods: Alt,     chars: "\x1b[1;3A"                   }
  424.  - { key: Up,                      chars: "\x1b[A",   mode: ~AppCursor  }
  425.  - { key: Up,                      chars: "\x1bOA",   mode: AppCursor   }
  426.  - { key: Down,     mods: Shift,   chars: "\x1b[1;2B"                   }
  427.  - { key: Down,     mods: Control, chars: "\x1b[1;5B"                   }
  428.  - { key: Down,     mods: Alt,     chars: "\x1b[1;3B"                   }
  429.  - { key: Down,                    chars: "\x1b[B",   mode: ~AppCursor  }
  430.  - { key: Down,                    chars: "\x1bOB",   mode: AppCursor   }
  431.  - { key: F1,                      chars: "\x1bOP"                      }
  432.  - { key: F2,                      chars: "\x1bOQ"                      }
  433.  - { key: F3,                      chars: "\x1bOR"                      }
  434.  - { key: F4,                      chars: "\x1bOS"                      }
  435.  - { key: F5,                      chars: "\x1b[15~"                    }
  436.  - { key: F6,                      chars: "\x1b[17~"                    }
  437.  - { key: F7,                      chars: "\x1b[18~"                    }
  438.  - { key: F8,                      chars: "\x1b[19~"                    }
  439.  - { key: F9,                      chars: "\x1b[20~"                    }
  440.  - { key: F10,                     chars: "\x1b[21~"                    }
  441.  - { key: F11,                     chars: "\x1b[23~"                    }
  442.  - { key: F12,                     chars: "\x1b[24~"                    }
  443.  - { key: F1,       mods: Shift,   chars: "\x1b[1;2P"                   }
  444.  - { key: F2,       mods: Shift,   chars: "\x1b[1;2Q"                   }
  445.  - { key: F3,       mods: Shift,   chars: "\x1b[1;2R"                   }
  446.  - { key: F4,       mods: Shift,   chars: "\x1b[1;2S"                   }
  447.  - { key: F5,       mods: Shift,   chars: "\x1b[15;2~"                  }
  448.  - { key: F6,       mods: Shift,   chars: "\x1b[17;2~"                  }
  449.  - { key: F7,       mods: Shift,   chars: "\x1b[18;2~"                  }
  450.  - { key: F8,       mods: Shift,   chars: "\x1b[19;2~"                  }
  451.  - { key: F9,       mods: Shift,   chars: "\x1b[20;2~"                  }
  452.  - { key: F10,      mods: Shift,   chars: "\x1b[21;2~"                  }
  453.  - { key: F11,      mods: Shift,   chars: "\x1b[23;2~"                  }
  454.  - { key: F12,      mods: Shift,   chars: "\x1b[24;2~"                  }
  455.  - { key: F1,       mods: Control, chars: "\x1b[1;5P"                   }
  456.  - { key: F2,       mods: Control, chars: "\x1b[1;5Q"                   }
  457.  - { key: F3,       mods: Control, chars: "\x1b[1;5R"                   }
  458.  - { key: F4,       mods: Control, chars: "\x1b[1;5S"                   }
  459.  - { key: F5,       mods: Control, chars: "\x1b[15;5~"                  }
  460.  - { key: F6,       mods: Control, chars: "\x1b[17;5~"                  }
  461.  - { key: F7,       mods: Control, chars: "\x1b[18;5~"                  }
  462.  - { key: F8,       mods: Control, chars: "\x1b[19;5~"                  }
  463.  - { key: F9,       mods: Control, chars: "\x1b[20;5~"                  }
  464.  - { key: F10,      mods: Control, chars: "\x1b[21;5~"                  }
  465.  - { key: F11,      mods: Control, chars: "\x1b[23;5~"                  }
  466.  - { key: F12,      mods: Control, chars: "\x1b[24;5~"                  }
  467.  - { key: F1,       mods: Alt,     chars: "\x1b[1;6P"                   }
  468.  - { key: F2,       mods: Alt,     chars: "\x1b[1;6Q"                   }
  469.  - { key: F3,       mods: Alt,     chars: "\x1b[1;6R"                   }
  470.  - { key: F4,       mods: Alt,     chars: "\x1b[1;6S"                   }
  471.  - { key: F5,       mods: Alt,     chars: "\x1b[15;6~"                  }
  472.  - { key: F6,       mods: Alt,     chars: "\x1b[17;6~"                  }
  473.  - { key: F7,       mods: Alt,     chars: "\x1b[18;6~"                  }
  474.  - { key: F8,       mods: Alt,     chars: "\x1b[19;6~"                  }
  475.  - { key: F9,       mods: Alt,     chars: "\x1b[20;6~"                  }
  476.  - { key: F10,      mods: Alt,     chars: "\x1b[21;6~"                  }
  477.  - { key: F11,      mods: Alt,     chars: "\x1b[23;6~"                  }
  478.  - { key: F12,      mods: Alt,     chars: "\x1b[24;6~"                  }
  479.  - { key: F1,       mods: Super,   chars: "\x1b[1;3P"                   }
  480.  - { key: F2,       mods: Super,   chars: "\x1b[1;3Q"                   }
  481.  - { key: F3,       mods: Super,   chars: "\x1b[1;3R"                   }
  482.  - { key: F4,       mods: Super,   chars: "\x1b[1;3S"                   }
  483.  - { key: F5,       mods: Super,   chars: "\x1b[15;3~"                  }
  484.  - { key: F6,       mods: Super,   chars: "\x1b[17;3~"                  }
  485.  - { key: F7,       mods: Super,   chars: "\x1b[18;3~"                  }
  486.  - { key: F8,       mods: Super,   chars: "\x1b[19;3~"                  }
  487.  - { key: F9,       mods: Super,   chars: "\x1b[20;3~"                  }
  488.  - { key: F10,      mods: Super,   chars: "\x1b[21;3~"                  }
  489.  - { key: F11,      mods: Super,   chars: "\x1b[23;3~"                  }
  490.  - { key: F12,      mods: Super,   chars: "\x1b[24;3~"                  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement