Skip to content

record: set VHS_RECORD=true environment variable in process - #478

Merged
maaslalani merged 1 commit into
charmbracelet:mainfrom
rockorager:vhs-env
May 9, 2024
Merged

maaslalani merged 1 commit into
charmbracelet:mainfrom
rockorager:vhs-env

Conversation

@rockorager

@rockorager rockorager commented May 8, 2024 •

Copy link
Copy Markdown
Contributor

Set the environment variable VHS_RECORD=true in the spawned pty command
to allow processes to detect if it is running in a real TTY or in a VHS
recording. Certain TUI libraries query the terminal for feature
detection which can cause issues when running within a VHS pty. Setting this environment variable allows processes to detect if they are running in VHS and enable/disable features as needed.

Set the environment variable VHS_RECORD=true in the spawned pty command
to allow processes to detect if it is running in a real TTY or in a VHS
recording. Certain TUI libraries query the terminal for feature
detection which can cause issues when running within a VHS pty.
@rockorager
rockorager requested a review from maaslalani as a code owner May 8, 2024 20:48

@maaslalani maaslalani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me, thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址