Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset does not reset kitty keyboard stack in alt screen #1607

Closed
gpanders opened this issue Mar 25, 2024 · 1 comment · Fixed by #1609
Closed

reset does not reset kitty keyboard stack in alt screen #1607

gpanders opened this issue Mar 25, 2024 · 1 comment · Fixed by #1609

Comments

@gpanders
Copy link
Member

Problem

If an application which uses the alt screen does not reset its kitty keyboard state on exit (usually because the application was killed) then the alt screen retains the kitty keyboard state even after a reset.

Steps to reproduce

The following script demonstrates the issue (note this will make the active terminal window unusable and will need to be force closed):

# enable alt screen
tput smcup

# set kitty keyboard state
printf '\x1b[>29u'

# exit alt screen without clearing kitty keyboard state
tput rmcup

# reset the terminal
reset

# enter alt screen again
tput smcup

Expected behavior

reset should reset the kitty keyboard state of the alt screen as well as the primary screen.

@mitchellh
Copy link
Contributor

Fixed on paged-terminal, which will be merged shortly. Watch #1584 and when that merges this fix will be on main. Thanks @gpanders

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 a pull request may close this issue.

2 participants