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

linenoise() always returns -1 on UserLAnd #184

Open
cosmos72 opened this issue Mar 11, 2020 · 0 comments
Open

linenoise() always returns -1 on UserLAnd #184

cosmos72 opened this issue Mar 11, 2020 · 0 comments

Comments

@cosmos72
Copy link

UserLAnd is an Android app to install stock Linux distributions on a smartphone.
For example, I use it to have a native Debian GNU/Linux arm64 development system on my phone.

Unluckily, on such system tcsetattr(fd,TCSAFLUSH, ...) fails with errno = EPERM, causing linenoise() to immediately return -1 without reading from the terminal.

As a workaround, I had to replace it with tcsetattr(fd,TCSANOW, ...)

Does it make sense to always use TCSANOW instead of TCSAFLUSH ?

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

No branches or pull requests

1 participant