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

Implement backends support, !isatty() causes buffered i/o #36

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

lionkor
Copy link
Owner

@lionkor lionkor commented Oct 13, 2023

When commandline notices, on startup, that the stdin or stdout have been redirected to something other than a tty, it would stop accepting input as it can't do it's ANSI shenanigans in that case. This fixes that issue, by implementing the possibility for multiple backends. Now there are two backends: The interactive one, which we usually use, and the buffered one, which just uses std::getline() and std::cout.

This was linked to issues Oct 13, 2023
@lionkor lionkor merged commit e85b477 into master Oct 13, 2023
7 checks passed
@lionkor lionkor deleted the 34-allow-other-backends branch October 13, 2023 20:06
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

Successfully merging this pull request may close these issues.

Don't use header guards Allow other backends
1 participant