sassman / t-rec-rs

Blazingly fast terminal recorder that generates animated gif images for the web written in rust
https://crates.io/crates/t-rec
GNU General Public License v3.0
987 stars 32 forks source link

alacritty terminal is not recognised by default #44

Open sassman opened 3 years ago

sassman commented 3 years ago

Describe the bug When recording in alacritty, when started out of a iterm2 terminal, it is not recording the alacritty but iterm2

To Reproduce Steps to reproduce the behavior:

  1. open alacritty from an iterm2 terminal
  2. start t-rec in alacritty terminal
  3. end recording
  4. see that actually the iterm2 teminal got recorded

Expected behavior Well, the terminal that t-rec was started was alacritty, so this should have been recorded.

Screenshots

Version Numbers of your System:

Additional context the workaround would be TERM_PROGRAM=alacritty t-rec

sassman commented 3 years ago

I filed a PR to make sure that alacritty sets this variable like also others do, e.g. vscode

sassman commented 3 years ago

Workarounds

Set the window name (aka terminal name)

NOTE: this works only if there is just one window with this name

TERM_PROGRAM=alacitty t-rec

Set the window id

find the window id of alacritty:

t-rec --ls-win | grep -i alacritty
Alacritty | 7324

then use this window id explicitly:

WINDOWID=7324 t-rec