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

UI Dissappears while playing game #34

Open
joshuacaplan opened this issue Dec 14, 2017 · 6 comments
Open

UI Dissappears while playing game #34

joshuacaplan opened this issue Dec 14, 2017 · 6 comments
Assignees
Labels
Milestone

Comments

@joshuacaplan
Copy link
Contributor

When playing on an Ubuntu 16.04 machine and an Ubuntu 17.10 machine the UI dissappears while playing the game. In order to make it re-appear you need to press the arrow keys. Then the UI will re-appear and you can continue playing (until the UI disappears again).

Please see here for a demo of this bug.

@bfontaine bfontaine added the bug label Dec 15, 2017
@bfontaine
Copy link
Owner

Thanks for the report!

I can reproduce on an old Ubuntu as well (14.04), with both Python 2 and 3. I’ll check what could be the cause this weekend.

@bfontaine bfontaine self-assigned this Dec 15, 2017
@bfontaine
Copy link
Owner

bfontaine commented Dec 17, 2017

Seems to be Linux-only as I can’t reproduce on macOS.

Edit: I wonder if it has anything to do with TERM and ncurses differences on macOS and Linux. See http://invisible-island.net/ncurses/ncurses.faq.html.

The default $TERM on macOS is xterm-256color. I tried setting it to xterm but didn’t get the issue. According to /usr/include/ncurses.h I have ncurses v5.7 (patch 20081102).

Edit 2: $TERM is xterm on my Ubuntu but setting it to xterm-256color doesn’t change anything. I don’t use ncurses so it shouldn’t be the source of the problem.

@bfontaine bfontaine added this to the 0.2.6 milestone Dec 25, 2017
@Cosinhs
Copy link
Contributor

Cosinhs commented Jul 31, 2019

The same problem happens on windows(win 7) too.

@Artemis21
Copy link

Pressing the arrow keys only makes it reappear if it also updates the board.

@Kerkpower
Copy link

also happens in termux

@bfontaine bfontaine modified the milestones: 0.2.6, 1.0.0 Mar 1, 2022
@bfontaine
Copy link
Owner

bfontaine commented Mar 2, 2022

I can reproduce on Ubuntu 20.04 with Python 3.9.10 but not on macOS. It appears to be quite random because it doesn’t always show a blank screen at the same point in the code. Forcing print to always flush doesn’t solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants