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

Mouse Commands #93

Merged
merged 3 commits into from
May 5, 2021
Merged

Mouse Commands #93

merged 3 commits into from
May 5, 2021

Conversation

meowgorithm
Copy link
Member

@meowgorithm meowgorithm commented May 5, 2021

This PR improves mouse support and deprecates mouse and altscreen program-level methods in favor of commands.

New

  • Added EnableMouseCellMotion, EnableMouseAllMotion and DisableMouse commands for enabling and disabling the mouse.

Changed

  • Mouse modes are automatically disabled when quitting a program.
  • Program-level mouse methods are now deprecated: Program.EnableMouseCellMotion, Program.DisableMouseCellMotion, Program.EnableMouseAllMotion, Program.DisableMouseAllMotion. Use the new commands instead.
  • Program-level altscreen methods are now deprecated: Program.EnterAltScreen and Program.ExitAltScreen. Use the corresponding commands instead.

Fixed

  • Mouse modes are automatically disabled when exiting after a panic.

@meowgorithm meowgorithm changed the title Mouse Mouse Commands May 5, 2021
@meowgorithm meowgorithm merged commit 4fbe50a into master May 5, 2021
@meowgorithm meowgorithm deleted the mouse branch May 5, 2021 22:12
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.

None yet

1 participant