Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add --keylog flag to record keypresses with timestamps#713

Open
pkazmier wants to merge 2 commits intocharmbracelet:mainfrom
pkazmier:keylogger
Open

feat: add --keylog flag to record keypresses with timestamps#713
pkazmier wants to merge 2 commits intocharmbracelet:mainfrom
pkazmier:keylogger

Conversation

Copy link

pkazmier commented Feb 27, 2026

Record key events during tape execution and output them as JSON for use by external subtitle generation or other accessibility tools.

Timestamps are derived from frame numbers to ensure accurate alignment with video output. My first version used wall clock, but that resulted in significant drift even in a 30s video (1.35s of drift). This version results in +/- of a frame or two.

Key events are not recorded during Hide sections.

See discussion #702 for more details.

pkazmier added 2 commits February 12, 2026 10:28
Record key events during tape execution and output them as JSON for use
by external subtitle generation or other accessibility tools.

Timestamps are derived from frame numbers to ensure accurate alignment
with video output. My first version used wall clock, but that resulted
in significant drift even in a 30s video (1.35s of drift). This version
results in +/- of a frame or two.

Key events are not recorded during Hide sections.
pkazmier requested a review from a team as a code owner February 27, 2026 17:03
pkazmier requested review from andreynering and aymanbagabas and removed request for a team February 27, 2026 17:03
Copy link
Author

pkazmier commented Mar 10, 2026

This PR has been superseded by PR #719 which adds captioning directly to VHS. I'd prefer to close this one if you'd consider the other one.

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

Reviewers

aymanbagabas Awaiting requested review from aymanbagabas aymanbagabas is a code owner automatically assigned from charmbracelet/everyone

andreynering Awaiting requested review from andreynering andreynering is a code owner automatically assigned from charmbracelet/everyone

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant