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

notcurses-demo continuously polls input when redirected #2547

Closed
dankamongmen opened this issue Jan 10, 2022 · 1 comment
Closed

notcurses-demo continuously polls input when redirected #2547

dankamongmen opened this issue Jan 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working demo relevant to notcurses-demo input readin' dem bytes
Milestone

Comments

@dankamongmen
Copy link
Owner

Run notcurses-demo -l7 < /dev/null, and watch your output explode with

internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin
internal_get:2563:read eof on stdin

it still runs to completion, but the input thread soaks a core as it does so.

@dankamongmen dankamongmen added bug Something isn't working demo relevant to notcurses-demo input readin' dem bytes labels Jan 10, 2022
@dankamongmen dankamongmen added this to the 3.1.0 milestone Jan 10, 2022
@dankamongmen dankamongmen self-assigned this Jan 10, 2022
@dankamongmen
Copy link
Owner Author

ok, just needed to break from the input loop following NCKEY_EOF in ultramegaok_demo(), done.

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

No branches or pull requests

1 participant