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

events stop working after coming back to the foreground #2702

Open
joseluis opened this issue Feb 4, 2023 · 5 comments
Open

events stop working after coming back to the foreground #2702

joseluis opened this issue Feb 4, 2023 · 5 comments
Assignees
Labels
bug Something isn't working input readin' dem bytes
Milestone

Comments

@joseluis
Copy link
Collaborator

joseluis commented Feb 4, 2023

After suspending an app with ctrl-z and bringing it up to the foreground with fg, the events are not processed as they were before, but the inputs are echoed to the terminal and not received until pressing enter. That looks as if we'd had abandoned the raw mode and entered the default terminal mode.

It can be replicated with notcurses-input on every terminal, but in kitty is even worse and nothing seems to work anymore after suspending a notcurses app, which doesn't happen with other apps.

@joseluis joseluis added the bug Something isn't working label Feb 4, 2023
@dankamongmen
Copy link
Owner

ick! good find. i think i saw something like this before, but am uncertain. let me look into it.

do your kitty problems happen with the last released notcurses, prior to the merging of #2695 ?

@dankamongmen dankamongmen self-assigned this Feb 4, 2023
@dankamongmen dankamongmen added the input readin' dem bytes label Feb 4, 2023
@dankamongmen dankamongmen added this to the 3.1.0 milestone Feb 4, 2023
@dankamongmen
Copy link
Owner

btw good to hear from you buddy =] i remain swamped working on satellites, but i'm expecting to be able to descend back upon this project come summer.

@joseluis
Copy link
Collaborator Author

joseluis commented Feb 4, 2023

do your kitty problems happen with the last released notcurses, prior to the merging of #2695 ?

mmm I'm not 100% sure, I hadn't recompiled notcurses in a while, but I'm sure it was v3.0.9, I just updated and recompiled and I see no difference. I also tested with kitty 0.26 and 0.27 and it's the same.

@joseluis
Copy link
Collaborator Author

joseluis commented Feb 4, 2023

btw good to hear from you buddy =] i remain swamped working on satellites, but i'm expecting to be able to descend back upon this project come summer.

good to hear from you too pal =) I'm finally trying to use notcurses to build things, so I'll maybe find some more before summer hehe

@michaelsbradleyjr
Copy link
Collaborator

In case it's helpful: ctrl-z and fg seem to work correctly if NCOPTION_DRAIN_INPUT is used.

For example, poc/gradients can be suspended and resumed without any problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working input readin' dem bytes
Projects
None yet
Development

No branches or pull requests

3 participants