Skip to content

terminal emulator Notes

Chris Jones edited this page Dec 3, 2018 · 8 revisions

Contents

Working with iTerm2

iTerm2 Gotchas

When messing around with locale settings make sure,

  • Set locale variables automatically

is set, within the Terminal under the Profiles tab.

If the above setting isn't set within iTerm2 locale settings have been know to get jacked. πŸ‹οΈβ€β™€οΈ

Both iTerm2 and Terminal.app get their locale settings from AppleLocale

The AppleLocale setting can be statused with

defaults read -g AppleLocale

iTerm2 useful Links

iTerm2 TODOs

Working with Hyper

Hyper Useful Links

Working with Alacritty

Alacritty does not provide any scrollback support out of the box, a useful work around is to use tmux.

Alacritty does not provide a way to create a new window.

If a connection to a remote server is broken due to network loss, ie. a SSH session is terminated unexpectedly, the hung SSH session can be terminated gracefully with, ⌘ + shift + .

However running the above key sequence could render the terminal unusable due to mouse clicks not properly being sent to the terminal emulator, thus try reseting the terminal

alacritty-broken-pipe-mouse-click

reset

To update Alacritty using cargo

cargo install --git https://github.com/jwilm/alacritty

Alacritty Key Bindings

To setup a meta key binding, ie. alt + [ALPHA_KEY], as far as I can tell, any of the alpha keys on the keyboard can be used, i.e A through z. All that is required is to do something like,

alacritty.yml

key_bindings:
- { key: [ALPHA_KEY],        mods: Alt,     chars: "\x1b[ALPHA_KEY]"                       }

Substitute [ALPHA_KEY] with a key of A through z on the keyboard.

Ex

key_bindings:
- { key: Q,        mods: Alt,     chars: "\x1bq"                       }

The example above adds a keybinding for alt + q

Alacritty Gotchas

If the correct font is not properly set in the alacritty.yml file within the $XDG_CONFIG_HOME Alacritty will fail to launch.

To use a font family with spaces in the name, ie. IBM Plex make sure to quote the name of the font family, ie. "IBM Plex"

To list and search for a particular font on macOS

fc-match -a | grep -i "[mr-fancy-search-string-within-font-family-name]"

The font family name is listed with double quotes when outputted to STDOUT with the above command.

Useful Links

Useful Links my dotfiles wiki

TODOs

  • time permitting do some research on auto resizing termnial windows based on the width of the output

Clone this wiki locally