t-rec-rs icon indicating copy to clipboard operation
t-rec-rs copied to clipboard

MacOS fullscreen terminal window produces an empty gif

Open ddxtanx opened this issue 2 years ago • 6 comments

Describe the bug Every time I call t-rec, whether it be in iTerm2, Terminal, or WezTerm, the produced gif is always blank.

To Reproduce Steps to reproduce the behavior:

  1. I installed it both via cargo and via brew, both lead to the same options
  2. I went to any folder and ran t-rec
  3. I entered some commands, and exited with CTRL-D
  4. I opened the gif and it was a blank white rectangle.

Expected behavior I expect the gif to be populated w/ my terminal recording.

Screenshots This is the output from t-rec. t-rec

Your MacOS Version

  • [x] 11 Big Sur
  • [ ] 10.15 Catalina
  • [ ] 10.14 Mojave
  • [ ] 10.13 High Sierra
  • [ ] 10.12 Sierra
  • [ ] Older than 10.12

Your Architecture

  • [ ] x86 / Intel
  • [x] arm / Apple Silicon

Your Terminal

  • [x] iTerm
  • [ ] Alacitty
  • [x] Apple Terminal
  • [x] Other: Wezterm

Additional context

  • I'm running zsh with a couple custom plugins, if they would have any impact

ddxtanx avatar Mar 08 '23 03:03 ddxtanx

Can you please double check if your screen recording settings would allow your terminal to record anything? Should look like this:

image

I'm also running on MacOS M1 and don't have any issues.

sassman avatar Mar 08 '23 15:03 sassman

I have enabled screen recording for all the terminals I’ve used t-rec on. Even with that it still won’t record

ddxtanx avatar Mar 08 '23 15:03 ddxtanx

You could try to run in --verbose mode and check if the temp-dir (named: Frame cache dir) is filling up with frames. Then see what is to see on those frames.

sassman avatar Mar 08 '23 16:03 sassman

In the folder listed (in this case it was /var/folders/89/hxbx_tts6vd_5gdhbfyhn1300000gn/T/.tmpkHmg9F) there is only one file t-rec-frame-000000255.bmp which is empty just like the GIF. Preview complains that it is damaged or a format it cannot recognize.

ddxtanx avatar Mar 08 '23 20:03 ddxtanx

Interestingly, it now seems to only be a problem with the terminal window being fullscreened. Native terminal, iTerm2 and WezTerm all work in windowed mode, but none of them work in fullscreen mode

ddxtanx avatar Mar 08 '23 20:03 ddxtanx

Oh, that is surprising. Never tested that tbh.

sassman avatar Mar 08 '23 20:03 sassman