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

Ensure that command-prompt is dismissed after a command creates a new screen #1804

Merged
merged 1 commit into from Apr 3, 2021

Conversation

lethosor
Copy link
Member

Fixes #1803

Running a command that created a new screen would previously result in a screen order that looked like this, due to how Screen::Hide works:

  • DF screen
    • command-prompt screen (dismissed)
      • New screen

The command-prompt screen remained on the stack until the new screen was dismissed, so it would intercept viewscreen vmethod calls intended for the DF screen.

This change adds a new behavior to Screen::Hide that results in this screen order after running a command:

  • DF screen
    • New screen
      • command-prompt screen (dismissed) - DF removes this screen immediately

… screen

Fixes DFHack#1803

Running a command that created a new screen would previously result in a screen
order that looked like this, due to how `Screen::Hide` works:

- DF screen
  - `command-prompt` screen (dismissed)
    - New screen

The `command-prompt` screen remained on the stack until the new screen was
dismissed, so it would intercept viewscreen vmethod calls intended for the
DF screen.

This change adds a new behavior to `Screen::Hide` that results in this screen
order after running a command:

- DF screen
  - New screen
    - `command-prompt` screen (dismissed) - DF removes this screen immediately
@lethosor lethosor added this to In progress in 0.47.05-r2 via automation Apr 3, 2021
@lethosor lethosor merged commit dfb52a2 into DFHack:develop Apr 3, 2021
0.47.05-r2 automation moved this from In progress to Done Apr 3, 2021
@lethosor lethosor deleted the command-prompt-fix-gui-scripts branch April 3, 2021 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
0.47.05-r2
  
Done
Development

Successfully merging this pull request may close these issues.

Screens created by commands run through command-prompt don't pass keys to the right parent screen
1 participant