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

Fix "stdin is not a tty" #3

Closed
wants to merge 4 commits into from
Closed

Fix "stdin is not a tty" #3

wants to merge 4 commits into from

Conversation

forgottenswitch
Copy link

@forgottenswitch forgottenswitch commented Nov 9, 2016

Adds a new include/iscygtty.c header, which defines iscygtty() call.
Extracted from https://github.com/forgottenswitch/mingw-isatty

Tested on mingw-w64-ag package: Alexpux/MINGW-packages@master...forgottenswitch:ag-tty
Ag patch is extracted from ggreer/the_silver_searcher@master...forgottenswitch:cygtty

Not sure if naming/logic are fully satisfactory, but it works.

Needs -lntdll in link command after everything else.
In automake, this is archieved with target_LDADD.

Moved from msys2/MSYS2-packages#730,
and should be fixing msys2/MSYS2-packages#705 as well.

Signed-off-by: Mihail Konev <k.mvc@ya.ru>
@forgottenswitch forgottenswitch changed the title Fix for "stdin is not a tty" Fix "stdin is not a tty" Nov 9, 2016
@forgottenswitch
Copy link
Author

Moving to sourceforge mailing list.

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