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

Exiting a soda when in fullscreen leaves terminal in wrong resolution (Linux) #2

Open
sebnozzi opened this issue Nov 16, 2021 · 2 comments

Comments

@sebnozzi
Copy link

sebnozzi commented Nov 16, 2021

Note: this happens when running in fullscreen from a terminal (non X-server) console.

Environment:

  • Raspberry Pi OS (Linux/Debian derivative)

Steps to reproduce:

  • Modify the window.ms test such that:
    1. It sets the window resolution to 640x480
    2. It exits when pressing the "Q" key
  • Switch to a terminal console by pressing Ctrl-Alt-F2
  • Log in, navigate to the soda tests
  • Run the window.ms test
  • Enter full screen by pressing space
  • Exit the program by pressing Q

Expected:

  • The user returns to the terminal and it has the same resolution as before

Actual

  • The user returns to the terminal, but it has a resolution lower than before
@sebnozzi sebnozzi changed the title Exiting a soda when in fullscreen leaves display in wrong resolution (Linux) Exiting a soda when in fullscreen leaves terminal in wrong resolution (Linux) Nov 16, 2021
@sebnozzi
Copy link
Author

Executing clear on the terminal (blindly, because one cannot see what one's typing) restores the display to its correct resolution.

@sebnozzi
Copy link
Author

I did some more testing - it's indeed a matter of soda switching back to the original resolution (from which it was started) before exiting. If I change this programmatically and exit then the terminal text displays normally.

Alas, changing programmatically does not always work from within a soda program. It tends to stay stuck in some resolution often.

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

No branches or pull requests

1 participant